new scripp maybe'

This commit is contained in:
2025-08-19 00:12:11 -06:00
parent de7e67a678
commit 328cb50cc4
3 changed files with 27 additions and 25 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
if [ -z $1 -o ! -f "$2" ]; then
echo "Usage: $0 <output_directory> <file_list>"
echo "ExaMPLE: download_file_list Downloads to_download.txt"
exit 1
fi
if [ ! -d "$1" ]; then
echo "Output directory does not exist: $1 Creating"
mkdir "$1"
fi
cat "$2" | \
while read line; do
echo "curl -o \"$1/$(basename $line)\" \"$line\""
done