Re: Find command to display attributes
On Mon, Jan 05, 2004 at 05:50:08PM +0100, VEGH Karoly wrote: > [EMAIL PROTECTED]:~/test$ find . -name "*[123]*" -exec ls -l {} \; With GNU find: find . -name "*[123]*" -ls -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Find command to display attributes
Colin Watson wrote: > On Mon, Jan 05, 2004 at 05:50:08PM +0100, VEGH Karoly wrote: > > On Mon, Jan 05, 2004 at 10:42:28AM -0600, Rick Weinbender wrote: > > > 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 {} \; > > Or simply: > > find . -name '*[123]*' -ls > > Cheers, > > -- > Colin Watson [EMAIL PROTECTED] > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] >find . -name '*[123]*' -ls Very concise! Also the output justs lists the directory. (doesn't include the files in it.) Thanks, -Rick -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Find command to display attributes
On Mon, Jan 05, 2004 at 05:50:08PM +0100, VEGH Karoly wrote: > On Mon, Jan 05, 2004 at 10:42:28AM -0600, Rick Weinbender wrote: > > 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 {} \; Or simply: find . -name '*[123]*' -ls Cheers, -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Find command to display attributes
VEGH Karoly wrote: > 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] *** Thanks, Obewan! That seems to do it. -Rick -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Find command to display attributes
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]
Find command to display attributes
Hi, 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. TIA, -Rick -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]