[CentOS] Get only script name with shell script
Semih Gokalp
semihgokalp at gmail.comFri Apr 24 18:35:00 UTC 2009
- Previous message: [CentOS] df -h shows system at 100% used, but there is space left
- Next message: [CentOS] Get only script name with shell script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ? Thanks all for help. -- Iyi calismalar.Basarilar... Semih Gokalp Istanbul/Turkiye
- Previous message: [CentOS] df -h shows system at 100% used, but there is space left
- Next message: [CentOS] Get only script name with shell script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list