Re: command to list all the files and with the path also

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, Jul 5th 2006 at 08:11 -0700, quoth Al Sparks:

=>--- Kaushal Shriyan <kaushalshriyan@xxxxxxxxx> wrote:
=>
=>> On 7/5/06, Joachim Backes <joachim.backes@xxxxxxxxxxxxxx> wrote:
=>> Hi Joachim Backes
=>> 
=>> I get
=>> 
=>> [root@bdc root]# find | xargs ls -l
=>> xargs: unmatched single quote
=>> [root@bdc root]#
=>
=>"xargs" is problematic when used with "find".  Basically xargs is
=>taking raw output and placing it at the end of the command line you're
=>piping to.  So if you have filenames that have characters which need
=>to be escaped, the shell doesn't handle it too well.
=>
=>Also, if you're going to do a recursive list using "find", "xargs",
=>and "ls" you're much better off using
=>   find | xargs ls -ld
=>
=>Without that, you'll get lots of duplicate file listings.
=>
=>I have used "find" extensively over the years.  I highly recommend
=>learning it.

ok. 

find . -print0 | xargs ls -ld

;-)

And to all those people out there who are enamored of

find  -exec

PLEASE DON"T DO IT.

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux