dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 6de69db6f6e87763f9f324b277b6ad2b09f614b3
parent 9e537687bcc886a81abd68cd167cbb1d96b0dcc3
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 27 Jan 2021 11:36:05 +0100

urlgrab: remove control characters from input file

Diffstat:
M.local/bin/urlgrab | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/urlgrab b/.local/bin/urlgrab @@ -8,7 +8,7 @@ fi (sleep 1; xdotool click 1) & pid="$(xprop | awk '/_NET_WM_PID/ { print $3 }')" f="${HOME}/.cache/st/$(date +%Y-%m-%d)/"*".$pid" -urls="$(cat $f | extract_urls)" +urls="$(cat $f | extract_urls | tr -cd '\11\12\15\40-\176')" c="$(printf '%s\n' "$urls" | reverse | $menu)" if test "$c"; then plumb "$c"