[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: making a little script shell



Why try to make what's already there? :)

Try "type" (bash builtin) or "which"
On my system it gives:

=============
[eric sirius eric]$ type ls
ls is aliased to `ls -aF --color=tty'
[eric sirius eric]$ which ls
alias ls='ls -aF --color=tty'
       /bin/ls
=============

Eric.

koffi BADOHOUN wrote:

Hello everybody,
I'm try to build a linux script named " search " . This script must locate the path where is the first argument . For example when typing " search ls " , I must get where is the executable for ls command . that is to say : " ls " is " /bin/ls " .
I must also have , " ls is hashed (/bin/ls)" when typing this command :" type ls "
please help .


koffi.

_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp




_______________________________________________
enigma-list mailing list
enigma-list redhat com
https://listman.redhat.com/mailman/listinfo/enigma-list







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]