diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-12 21:32:04 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-12 21:32:04 +0530 |
commit | a9a5f3284893155c8d2e406366d00e24ec91032c (patch) | |
tree | ebc5f16a5d0643da334663e767dd2e08c73aca07 /.scripts | |
parent | 1ff61073b150e9f124859415ae9be9a418f35821 (diff) |
pushing a script to curl multiple items (pitcures)
Diffstat (limited to '.scripts')
-rwxr-xr-x | .scripts/curl_links.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.scripts/curl_links.sh b/.scripts/curl_links.sh new file mode 100755 index 0000000..655a7d4 --- /dev/null +++ b/.scripts/curl_links.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +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" + ((output=$output+1)) +done |