paul- wrote: 
> Interesting.  I would have thought xargs could deal with that.   I never
> create filenames like that, so I never see those errors.  Thx for
> tracking that down, will change how I do that.

print0 fixes the single quote error, but then grep passes one long
filename to xargs -0 ("File name too long" error)
One solution is to use another way to exclude lost+found, possibly find
. -not -path 

I did a quick test of this (just doing an LMS -1, but should work any
command)


Code:
--------------------
    
  find . -not -path ./lost+found -print0 | xargs -0 -r ls -1
  
--------------------



Tony
  SBTouch ♪ SBRadio ♬
------------------------------------------------------------------------
Tony T's Profile: http://forums.slimdevices.com/member.php?userid=34544
View this thread: http://forums.slimdevices.com/showthread.php?t=112456

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to