Shell Scripting Knowledge Base

Loop through lines in a file

#!/bin/bash

file="missing~2026_1111.txt"

while IFS= read -r mp3 || [[ -n "$mp3" ]]; do
    cp -v /media/dave/data_hdd/13__music/"$mp3" .
done < "$file"