From a9a5f3284893155c8d2e406366d00e24ec91032c Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 12 Apr 2021 21:32:04 +0530 Subject: pushing a script to curl multiple items (pitcures) --- .scripts/curl_links.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .scripts/curl_links.sh (limited to '.scripts') 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 -- cgit v1.2.3