Re: Get only script name with shell script

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



Thanks Bob very thanks.



2009/4/24 Bob Beers <bob.beers@xxxxxxxxx>:
> On Fri, Apr 24, 2009 at 2:35 PM, Semih Gokalp <semihgokalp@xxxxxxxxx> wrote:
>> Hi all,
>>
>> I wrote shell script and put it under the /usr/local/bin/ directory.
>>
>> I use echo $0 for get script name but it has printed
>> "/usr/local/bin/<scriptname>" but  i want to only print <scriptname>
>>
>> How can i do this ?
>>
>
> man basename
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Iyi calismalar.Basarilar...
Semih Gokalp
Istanbul/Turkiye
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux