From 8dae21a47399f91cb7054e97449e6a67421867ff Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 24 Jul 2024 05:26:03 +0300 Subject: [PATCH] Feat: Cleanup redirects Remove verbiage. --- bkmk-chk | 1 + cleanup_redirects | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100755 cleanup_redirects diff --git a/bkmk-chk b/bkmk-chk index 60821e1..cfb2d65 100755 --- a/bkmk-chk +++ b/bkmk-chk @@ -24,6 +24,7 @@ check_urls_db.py -e && BKMK_WRITER=flad db2bkmk.py && check_dups.py -s -l check_dups.txt >/dev/null && check_redirects.py -s -l check_redirects.txt && +cleanup_redirects && check_title.py -s -l check_title.txt && bkmk-sort && diff --git a/cleanup_redirects b/cleanup_redirects new file mode 100755 index 0000000..d2313f0 --- /dev/null +++ b/cleanup_redirects @@ -0,0 +1,13 @@ +#! /bin/sh +# Cleanup redirects +# +# This file is a part of Bookmarks database and Internet robot. +# +# __author__ = "Oleg Broytman " +# __copyright__ = "Copyright (C) 2024 PhiloSoft Design" +# __license__ = "GNU GPL" + +exec sed \ + -e 's/^(\(perm\|temp\)[0-9]\.) to //' \ + -e 's/^(html) to \+\(.\+\) ([0-9]\+ sec)/\1/' \ +check_redirects.txt >set_redirects.txt -- 2.39.5