[CentOS] Get only script name with shell script
Jeff
jlar310 at gmail.comFri Apr 24 18:39:07 UTC 2009
- Previous message: [CentOS] Get only script name with shell script
- Next message: [CentOS] Get only script name with shell script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Apr 24, 2009 at 1:35 PM, Semih Gokalp <semihgokalp at gmail.com> 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 ? basename $0
- Previous message: [CentOS] Get only script name with shell script
- Next message: [CentOS] Get only script name with shell script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list