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

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!
> >
> > 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 {} \;
>
> Or simply:
>
>   find . -name '*[123]*' -ls
>
> Cheers,
>
> --
> Colin Watson                                  [cjwatson@flatline.org.uk]
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

****************************
>find . -name '*[123]*' -ls

Very concise!
Also the output justs lists the directory. (doesn't include the files in it.)
Thanks,
-Rick




Reply to: