I'm trying to concatenate a bunch of files into a string so I can use them for a function.
As a test script I'm trying to do this:
for line in $(cat list.txt)
mv "$A" ./stuff
mv: cannot stat ‘x.dat y.dat z.dat ’: No such file or directory
mv $A ./stuff
That should work with files that do not have space in their names.