#!/bin/bash downloadfromfuckingfast(){ $1: name of the file to download $2: download…
- User
#!/bin/bash
download_from_fuckingfast(){ # 1: name of the file to download # 2: download location for that file
codefile_url=$1 download_location=$2 # download the file aria2c -c -d "$download_location" "file_url"}
DOWNLOAD_DIR="Download/"
Loop through each file in the instruction directory
for instruction_file in "DOWNLOAD_DIR"/*; do
code# Get base name of the instruction file to use as folder name download_job_name=$(basename "$instruction_file") # Create the folder if it doesn't exist mkdir -p "$DOWNLOAD_DIR/$folder_name" # Read each line from the instruction file while IFS= read -r url || [ -n "$url" ]; do # Skip empty lines and comments [[ -z "$url" || "$url" =~ ^[[:space:]]*# ]] && continue # Download the file echo "Downloading: $url" download_from_fuckingfast "$url" "$job_download_dir" # Use aria2c to download files listed in the instruction file # -c: continue if file already exists # -d: set download directory #aria2c -c -d "$folder_name" -i "$instruction_file"
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.