TIP: Click on subject to list as thread! ANSI
echo: linuxhelp
to: Randall Parker
from: Ad
date: 2006-12-21 09:47:00
subject: Re: Recursive ls on book...?

MSGID: 1:379/45 c8fd6d54
 REPLY: 1:379/45 97a24391
 TZUTC: -0500
 CHARSET: PC-8
From: Ad 


> This seems verbose. But the -name applies to what comes after it, right?
> So how could one create an alias or script that would just take a path
> and a string? e.g.:
>
> ff . "book*"
>

Use the surprisingly named command "alias".

Simply set the various commands & their "Randall friendly"
version into a
startup script e.g. bashrc et voila.



>>
>> 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.
>
> So how to update the database for locate and slocate?
>

updatedb run as root. I tend to shove it into my "over night bookkeeping
script" run via cron.


Adam

--- 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™.