Re: help with ls

"Phil" <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Message-ID <[email protected]>
This will give ls the directory specified and every subdirectory under it.

find thedir -name '*.cfg' -ls;find thedir -name '*.conf' -ls

There IS a way to search for *.cfg or *.conf in the same find but I can't
remember how.


----- Original Message ----- 
From: "Jon Miller" <[email protected]>
To: <[email protected]>
Sent: Sunday, May 25, 2003 8:42 AM
Subject: help with ls


> I need to do a listing using either ll or ls that can allow me to lsit
files in all directories and subdirectories.
> I've tried the following:
> ls -lsr / * | grep *.conf and this give me a listing but with the path and
I need that info.
> Also can I have more than 1 grep on the same command line? eg if I want
listing for both .cfg and .conf.
>
> Thanks
>
> Jon L. Miller, MCNE, CNS
> Director/Sr Systems Consultant
> MMT Networks Pty Ltd
> http://www.mmtnetworks.com.au
>
> "I don't know the key to success, but the key to failure
>  is trying to please everybody." -Bill Cosby
>
>
>
>
>
> _______________________________________________
> enigma-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/enigma-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.