[linux-help] Re: ls
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
ls -R * will recursively list and descend through all directories from
the current working directory. It won't tell you whether the file is
there or not. It's better to use this instead :
find . -name filename 2> /dev/null
where the file name is the file you're looking for and the dot is the
cwd. If you wish, -ctime and others will allow you to find files with
creation times and other forms of search exist. The 2> /dev/null tells
all the error messages to go to /dev/null which is a special file which
basically just directs trash off into thin air.
Nathan wrote:
> I've got a simple question:
>
> Is there a way, using the "ls" command, to search a directory and all
> sub-directories for a file?
>
> Nathan
>
> -- This is the linux-help@xxxxxxxxx list. To unsubscribe,
> visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
--
/**********************************************/
Carpe Diem
And while you're at it...
Illegitimos Non-Carborundum
/**********************************************/
-- Binary/unsupported file stripped by Listar --
-- Type: text/x-vcard
-- File: jmresler.vcf
-- Desc: Card for John
-- This is the linux-help@xxxxxxxxx list. To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
- [linux-help] ls, Nathan, 2000/09/02
- [linux-help] Re: ls, Gary Gaston, 2000/09/02
- [linux-help] Re: ls, Carl D Cravens, 2000/09/02
- [linux-help] Re: ls, Bruce Bales, 2000/09/02
- [linux-help] Re: ls, Greg House, 2000/09/02
- [linux-help] Re: ls, Bruce Bales, 2000/09/02
- [linux-help] Re: ls, Bruce Bales, 2000/09/02
- [linux-help] Re: ls, Greg House, 2000/09/02
[linux-help] Re: ls, Jonathan Hall, 2000/09/02
[linux-help] Re: ls, Jonathan Hall, 2000/09/02
[linux-help] Re: ls,
John <=
- [linux-help] Re: ls, Nathan, 2000/09/02
- [linux-help] Re: ls, Tom Hull, 2000/09/03
- [linux-help] Re: ls, James O. Harms, 2000/09/03
- [linux-help] Re: ls, Tom Hull, 2000/09/04
- [linux-help] Re: ls, Jeremy King, 2000/09/05
|
|