From: Silvio Rhatto Date: Fri, 19 Feb 2021 19:14:08 +0000 (-0300) Subject: Feat: adds urlssave X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d2d12680f7b81d4a5655759e8f25d5941a9589c8;p=scripts.git Feat: adds urlssave --- diff --git a/urlinfo b/urlinfo index cde32fa..cce2113 100755 --- a/urlinfo +++ b/urlinfo @@ -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 "" | sed -n 's/.*<title>\(.*\)<\/title>.*/\1/ip;T;q' 2> /dev/null`" # YouTube: diff --git a/urlsave b/urlsave index afef452..e58245c 100755 --- a/urlsave +++ b/urlsave @@ -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