This script worked perfectly for me last night but now has stopped with the error message "Invalid syntax" pointing at the dollar sign in LINES=$(cat 'ytZiele.txt')
#!/usr/bin/bash
LINES=$(cat 'ytZiele.txt')
for LINE in $LINES
do
echo $LINE
done