[ale] decending dirs with spaces in the path
Geoffrey
esoteric at 3times25.net
Sat Jan 18 00:47:50 EST 2003
John Wells wrote:
> I have a win4lin directory tree with many dirs/files with spaces in their
> paths.
>
> I'd like to search these files for particular strings. I typically do
> this with:
>
> find /somedir -print | xargs grep string
find $DIR -type f -printf "\"%p\"\n" |xargs grep string
I threw in the '-type f' as you probably only want to grep files, not
directories. The key to your problem is the formatted printf.
>
> But the spaces give grep a headache. Is there anyway to surround the
> results of find with quotes before piping to xargs?
>
> Thanks!
> John
>
>
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
>
--
Until later: Geoffrey esoteric at 3times25.net
The latest, most widespread virus? Microsoft end user agreement.
Think about it...
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list