From d2d12680f7b81d4a5655759e8f25d5941a9589c8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 19 Feb 2021 16:14:08 -0300 Subject: Feat: adds urlssave --- urlinfo | 1 + urlsave | 1 + urlssave | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100755 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 -- cgit v1.2.3