I'll second that - just tried find on a set of files with spaces in their names and it findsn Tuesday 23 May 2006 09:17 am, Duncan Anderson wrote: them with no problems. If you want to pipe these through to other programs, you can use the -print0 (that's print and a zero) option which ends each file with a null rather than a newline (see man find). Then you can use xargs -0 to read them in. So you could do something like find . -iname "*.*" -print0 | xargs -0 grep -i "searchitem"to find searchitem within a set of files with spaces. (The -i's mean case insensitive) Neill |
- Re: [newbie] oowriter2 Lee Wiggers
- Re: [newbie] oowriter2 Duncan Anderson
- Re: [newbie] oowriter2 H.J.Bathoorn
- Re: [newbie] oowriter2 Duncan Anderson
- Re: [newbie] oowriter2 H.J.Bathoorn
- Re: [newbie] oowriter2 Lee Wiggers
- Re: [newbie] oowriter2 Russell Butler
- Re: [newbie] oowriter2 H.J.Bathoorn
- Re: [newbie] oowriter2 Duncan Anderson
- Re: [newbie] Find and spaces in file... H.J.Bathoorn
- Re: [newbie] Find and spaces in file... Neill Jones
- Re: [newbie] Find and spaces in file... H.J.Bathoorn
- Re: [newbie] Find and spaces in file... Duncan Anderson
- Re: [newbie] oowriter2 Lee Wiggers
- Re: [newbie] Find and spaces in file... H.J.Bathoorn
- Re: [newbie] Find and spaces in file... Duncan Anderson
- Re: [newbie] Find and spaces in file... Neill Jones
- Re: [newbie] Find and spaces in file... H.J.Bathoorn
- Re: [newbie] Find and spaces in file... Neill Jones
- Re: [newbie] Find and spaces in file... H.J.Bathoorn
- Re: [newbie] Find and spaces in file... Neill Jones
