diff options
-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 |