On Mon, Jan 05, 2004 at 10:42:28AM -0600, Rick Weinbender wrote: > The Find command has been very useful to me in finding > files or directories that I could'nt remember the exact name. > > for example: > find / -iname "*web*" > finds occurrences of files and directories containing the text "web" in > the filename/dirname. > > Is there a way to format the screen output of the above command so > that I see all the file information (as in "ls -al"), which yields > file and directory attributes, dates, owner, etc.
use the force, luke! [EMAIL PROTECTED]:~$ mkdir test [EMAIL PROTECTED]:~$ cd test [EMAIL PROTECTED]:~/test$ touch 1 2 3 a b c [EMAIL PROTECTED]:~/test$ [EMAIL PROTECTED]:~/test$ find . -name "*[123]*" -exec ls -l {} \; -rw-r--r-- 1 charlie charlie 0 Jan 5 17:47 ./1 -rw-r--r-- 1 charlie charlie 0 Jan 5 17:47 ./2 -rw-r--r-- 1 charlie charlie 0 Jan 5 17:47 ./3 [EMAIL PROTECTED]:~/test$ [EMAIL PROTECTED]:~/test$ ls -l total 0 -rw-r--r-- 1 charlie charlie 0 Jan 5 17:47 1 -rw-r--r-- 1 charlie charlie 0 Jan 5 17:47 2 -rw-r--r-- 1 charlie charlie 0 Jan 5 17:47 3 -rw-r--r-- 1 charlie charlie 0 Jan 5 17:47 a -rw-r--r-- 1 charlie charlie 0 Jan 5 17:47 b -rw-r--r-- 1 charlie charlie 0 Jan 5 17:47 c [EMAIL PROTECTED]:~/test$ HTH charlie -- Végh Károly - System Engineer - UTA - TIS.SAS.BSS "First they ignore you, then they laugh at you, then they attack you, then you win." - Mahatma Gandhi -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]