diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-25 14:14:45 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-25 14:14:45 +0530 |
commit | 6e19a7323d39cfd9bee83cdc1cd37986c2723c8f (patch) | |
tree | c30c30d65ca63e9a13b14da4f3579a3e5fcbf39d /.scripts | |
parent | 7f53350581dfbc4054590a0415815ad765958b98 (diff) |
fixed error with file extension
Diffstat (limited to '.scripts')
-rwxr-xr-x | .scripts/curl_links.sh | 5 |
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" |