aboutsummaryrefslogtreecommitdiff
path: root/.scripts/curl_links.sh
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-04-25 14:14:45 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-04-25 14:14:45 +0530
commit6e19a7323d39cfd9bee83cdc1cd37986c2723c8f (patch)
treec30c30d65ca63e9a13b14da4f3579a3e5fcbf39d /.scripts/curl_links.sh
parent7f53350581dfbc4054590a0415815ad765958b98 (diff)
fixed error with file extension
Diffstat (limited to '.scripts/curl_links.sh')
-rwxr-xr-x.scripts/curl_links.sh5
1 files changed, 4 insertions, 1 deletions
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"