[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-linux
Subject:    Re: [kde-linux] dir /s
From:       Bahram Alinezhad <alineziad () yahoo ! com>
Date:       2004-10-30 18:38:44
Message-ID: 20041030183844.11579.qmail () web50008 ! mail ! yahoo ! com
[Download RAW message or body]

->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"Bahram Alinezhad" (alineziad@yahoo.com)
wrote:
----------
In DOS, we can search for files inside a directory and
all its sub-directories with "/s" switch in "dir"
command; For example:

dir *.sys c:\windows /s

Why can't similar operation be done with "ls" in
linux?
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<-


->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"daniel" (danstemporaryaccount@yahoo.ca)
wrote:
----------
'cause linux has a better command.  it's called
"find":

  $ man find

with it you can do neat stuff like search for files in
<dir> matching <pattern> and then execute programs
using those results as arguments etc.
for what you asked for above, you can do this:

  $ find /path/to/wherever -name '*.sys'
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<-


Yes, "find" works well, however, I have a suggestion:
"ls" command together with "--ignore" option can
ignore patterns; What would happen if there was an
option to *follow* patterns?

Thank you for your help,
Bahram Alinezhad,
Rudehen, Tehran, Iran.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___________________________________________________
This message is from the kde-linux mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic