[CLUE-Tech] bash and spaces

Angelo Bertolli angelo at freeshell.org
Tue Nov 9 11:12:53 MST 2004


Can someone explain why this has a problem with spaces in the filename?

for log in `locate WS_FTP.LOG`; do cat "$log" >> ~root/WS_FTP_ALL2.LOG; done

How do you process files when there are spaces in the path?  I even tried:

cat `locate WS_FTP.LOG` >> ~root/WS_FTP_ALL2.LOG

and I got the same result:  it treats a space as an EOLN character

Angelo




More information about the clue-tech mailing list