[CLUE-Tech] bash and spaces

Greg Knaddison greg.knaddison at gmail.com
Tue Nov 9 11:28:23 MST 2004


Maybe find will work better for you scenario:

find / -name WS_FTP.LOG -exec cat {} \; >> ~root/WS_FTP_ALLL2.LOG

Greg

On Tue, 09 Nov 2004 13:12:53 -0500, Angelo Bertolli
<angelo at freeshell.org> wrote:
> 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
>



More information about the clue-tech mailing list