Search with ls, like MS-DOS dir /s ...?
Posted: Thu Mar 15, 2012 9:13 am
Really basic question... I'm not too embarrased to ask
I gave up on Windows search years ago (kept missing out files I knew were there, GUI changes from one Windows version to the next), so I open a command window, cd\ if necessary, and
dir whatever.* /s
This scans the whole disk ( /s being to specify subdirectories) and finds what I'm looking for.
I tried to use ls in Linux, but although ls -R does list the whole disk, ls -R *.mp3 doesn't do what I expect - because if there's no file matching the search criteria in the initial folder, it errors (No such file or directory) and doesn't try anywhere else.
Doesn't look like any other switches would help, either.
What's the secret to such a simple search?
I gave up on Windows search years ago (kept missing out files I knew were there, GUI changes from one Windows version to the next), so I open a command window, cd\ if necessary, and
dir whatever.* /s
This scans the whole disk ( /s being to specify subdirectories) and finds what I'm looking for.
I tried to use ls in Linux, but although ls -R does list the whole disk, ls -R *.mp3 doesn't do what I expect - because if there's no file matching the search criteria in the initial folder, it errors (No such file or directory) and doesn't try anywhere else.
Doesn't look like any other switches would help, either.
What's the secret to such a simple search?