remove not-needed file
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m35s

This commit is contained in:
philipp 2024-02-06 11:47:26 +01:00
parent 7fa62ef1f9
commit d675840fc1

View File

@ -1,23 +0,0 @@
#!/bin/bash
# Name of the file containing the URLs
input_file="overview.result"
# Check if the input file exists
if [ ! -f "$input_file" ]; then
echo "File $input_file does not exist."
exit 1
fi
# Counter for line number
line_number=1
# Iterate over each line in the file
while IFS= read -r url; do
formatted_line_number=$(printf "%04d" $line_number)
# Use wget to download the content and save it to a file named "<line_number>.xml"
wget -O "par/${formatted_line_number}.xml" "$url"
# Increment the line number
((line_number++))
done < "$input_file"