I'm having an issue with a bash script I've written. The command works until the SED, and I'm not really sure what I've done incorrectly. HAL is the variable in the text file that I'm trying to replace. Any ideas?
for i in $( cat LIST.txt) do
sed s/HAL/i/ <~/test/template.txt > new$i.txt
done
The error given is "syntax error near unexpected token sed" it then gives the sed line.