[ale] alias? or script?
Keith Hopkins
hne at hopnet.net
Tue Jul 9 06:36:42 EDT 2002
Stephen Turner wrote:
> hey say i wanted to do something like, 'find gzip /' i think thats the
> order, anyways just as an example :-p but i wanted to like change the
> word, find to search or what ever, some other word or letter combination
> :-p do i do that in alias? or a script? like can i just say " alias search
> = find" and everytime i type search it use the find command instead?
>
Ney, oh misguided one. If though are really seeking to find files, "locate" is the command you seek. Unless you are looking for something you just installed, then locate is a lot faster than find.
Otherwize, if you just wish to rename a command, then 'alias search="find"' works just fine.
Turn up the mantras.
--
Lost in Tokyo,
Keith
P.S. Writing a script to do the same will work, but it is slower because you add the overhead of forking a new shell for running the script itself.
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list