diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-02-19 16:14:08 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-02-19 16:14:08 -0300 |
commit | d2d12680f7b81d4a5655759e8f25d5941a9589c8 (patch) | |
tree | 629c7f3152d7aafd7b2465d7e696716b3581eb9d | |
parent | 835d41f2cd5eafbbd5ff92eae66b1a0d91c5547b (diff) | |
download | scripts-d2d12680f7b81d4a5655759e8f25d5941a9589c8.tar.gz scripts-d2d12680f7b81d4a5655759e8f25d5941a9589c8.tar.bz2 |
Feat: adds urlssave
-rwxr-xr-x | urlinfo | 1 | ||||
-rwxr-xr-x | urlsave | 1 | ||||
-rwxr-xr-x | urlssave | 9 |
3 files changed, 11 insertions, 0 deletions
@@ -16,6 +16,7 @@ if [ -z "$URL" ]; then fi # Dispatch +echo "Getting info for $URL..." DESC="`torify curl --max-redirs 10 -L -s $URL | grep -i "<title>" | sed -n 's/.*<title>\(.*\)<\/title>.*/\1/ip;T;q' 2> /dev/null`" # YouTube: @@ -17,4 +17,5 @@ if [ -z "$URLFILE" ] || [ ! -e "$URLFILE" ]; then fi # Dispatch +echo "" >> $URLFILE urlinfo $* >> $URLFILE diff --git a/urlssave b/urlssave new file mode 100755 index 0000000..85c7a6f --- /dev/null +++ b/urlssave @@ -0,0 +1,9 @@ +#!/bin/bash +# +# Save multiple URLs using the same tags. +# + +# Dispatch +while read url; do + urlsave $url $* +done |