| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Recursive ls on book...? |
MSGID: 1:379/45 86243e91
REPLY: 1:379/45 e06339dc
TZUTC: -0500
CHARSET: PC-8
From: John Beckett
Randall Parker
wrote in message news::
> dir /s book*.*
You've had some informative replies, but they have not mentioned one vital
point. If Unix had a 'dir /s' command, the above would still not do what you
want because Unix has no concept of a file extension.
The pattern book*.*
matches only file names starting with 'book' AND that contain a period
(".")
after 'book'.
As was mentioned, you need pattern book* (no period).
The action "-print" is usually the default, so the equivalent of
DOS 'dir /s
book*.*' is
find . -name "book*"
The '.' refers to the current directory. Use '/' to start from root.
When I last investigated 'find' (a couple of years ago), I discovered that you
should use 'locate' or better still 'slocate'. These are much faster, but
depend on an index file being maintained.
I think that 'find' is strictly case sensitive, whereas 'slocate' has an option
for case insensitive searching.
John
--- BBBS/NT v4.01 Flag-5
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45)SEEN-BY: 633/267 270 5030/786 @PATH: 261/1 38 123/500 379/1 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.