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

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!
>
> charlie@marvin:~$ mkdir test
> charlie@marvin:~$ cd test
> charlie@marvin:~/test$ touch 1 2 3 a b c
> charlie@marvin:~/test$
> charlie@marvin:~/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
> charlie@marvin:~/test$
>
> charlie@marvin:~/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
> charlie@marvin:~/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 debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

***************************************
Thanks, Obewan!
That seems to do it.
-Rick




Reply to: