Garayed.com  

Go Back   Garayed.com > Linux
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-02-2006, 06:19 PM
noi
 
Posts: n/a
Default Re: ls command

On Mon, 02 Oct 2006 02:42:12 -0400, Chris F.A. Johnson wrote this:

> On 2006-10-02, noi wrote:
> ...
>> I think you could use
>>
>> find . -name '*.h' | xargs ls -l
>>
>> Find will traverse the "." current directory and all sub-directories,
>> the "|" will pipe found files to an "ls -l" to list file attributes.

>
> There's no need for xargs:
>
> find . -name '*.h' -ls
>
> Or:
>
> find . -name '*.h' -printf '...'
>
> Where '...' is a format string (see the man page for details).


Yes of course. I wasn't thinking.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:29 PM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.