From 6e19a7323d39cfd9bee83cdc1cd37986c2723c8f Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 25 Apr 2021 14:14:45 +0530 Subject: fixed error with file extension --- .scripts/curl_links.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.scripts/curl_links.sh b/.scripts/curl_links.sh index 7ac3152..143c3c5 100755 --- a/.scripts/curl_links.sh +++ b/.scripts/curl_links.sh @@ -1,7 +1,10 @@ #!/bin/sh + +# ext="gif" # without the dot +echo "enter extention without the period" +read ext output=1 -ext="gif" # without the dot for i in $(cat $ext.txt); do curl "{$i}" --output /zt/Docs/pics/$output.$ext # echo "{$i} /pics/$output.$ext" -- cgit v1.2.3