Search Results

Search: Posts Made By: Gargi
1,001
Posted By Gargi
I came accross a script containing these codes....
I came accross a script containing these codes. As am new to unix so trying to write a new script with these code to test .

CUR_DIR=${0%/*}
if [ "$CUR_DIR" != "$0" ]
then
cd $CUR_DIR
1,001
Posted By Gargi
Thank you. I was trying to print the path/file...
Thank you. I was trying to print the path/file inside the script by using
DIR=$0
echo $DIR

but its not working...
1,001
Posted By Gargi
Unix help
${0%/*} means what? could anybody help me.
Showing results 1 to 3 of 3

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