Re: Handle paths with spaces
On Thu, Jan 7, 2010 at 11:08 AM, Foss User <fossist@gmail.com> wrote:
> This is my directory structure:
> .
> | a.sh
> | a.txt
> |
> +---foo bar
> | b.txt
> |
> +---santa
> | | c.txt
> | |
> | \---humpty dumpty
> | e.txt
> |
> \---test
> d.txt
>
> I want to do some operation on each file ending with .txt. However,
> this script wouldn't work because in each iteration it gets one word
> from the output of find.
If you are using bash, the answer is in the faq
http://mywiki.wooledge.org/BashFAQ/020
Regards,
Reply to: