|
Neill Jones wrote: Just for info and clarity: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: A minor extra to H.J.Bathoorns post ... in the above, it is not the -iname which causes problems with the spaces, it is the use of xargs. For example, find . | grep "filename"works as pointed out by Harm. Also find . -iname "*.txt" | grep "filename"will work with all .txt files found. In both cases this can be understood since find returns each find item with a new line after it. grep then just reads each line of standard in which is a full line with the file name on it. When these are combined together as parameters for xarg however the spaces are seen as parameter breaks and so cause problems. Then you need to use the -print0 and xargs -0 options. Regards Neill |
- Re: [newbie] oowriter2 Duncan Anderson
- Re: [newbie] Find and spaces in file names ... was oowrite... H.J.Bathoorn
- Re: [newbie] Find and spaces in file names ... was oowrite... Neill Jones
- Re: [newbie] Find and spaces in file names ... was oowrite... H.J.Bathoorn
- Re: [newbie] Find and spaces in file names ... was oowrite... Duncan Anderson
- Re: [newbie] oowriter2 Lee Wiggers
- Re: [newbie] Find and spaces in file names ... was oowrite... H.J.Bathoorn
- Re: [newbie] Find and spaces in file names ... was oowrite... Duncan Anderson
- Re: [newbie] Find and spaces in file names ... was oowrite... Neill Jones
- Re: [newbie] Find and spaces in file names ... was oowrite... H.J.Bathoorn
- Re: [newbie] Find and spaces in file names ... was oowrite... Neill Jones
- Re: [newbie] Find and spaces in file names ... was oowrite... H.J.Bathoorn
- Re: [newbie] Find and spaces in file names ... was oowrite... Neill Jones
- Re: [newbie] Find and spaces in file names ... was oowrite... H.J.Bathoorn
- Re: [newbie] a test --Find and spaces in file names ... w... H.J.Bathoorn
- Re: [newbie] Find and spaces in file names ... was oowrite... Neill Jones
