Search Results

Search: Posts Made By: new9021
2,104
Posted By new9021
No I would like to use the ${0} variable to...
No I would like to use the ${0} variable to derive the name with out the extension. So if I had a script named thescript.script and i have a variable within the script:
name=${0##*/}

here i get...
2,104
Posted By new9021
Got a little bit closer with name=`${0%.*}` ...
Got a little bit closer with
name=`${0%.*}`

gives me "./my" but now it has the "./" that I want to get rid of.

help...
2,104
Posted By new9021
Striping process variable
Hello. I would like to strip out the process name from the ${0##*\} variable. So that if I have a script named "mytest.script" the variable would be populated with just "mytest" I have tried doing...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 02:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy