Hi guys,
Here's part of my code which called summary.ksh :
I want to have the full path directory if the input is "."
so
if I'm at the directory /opt/adoc
when I execute the script, I want the $input = /path/of/directory, the result would be something like this :
Could you guys help me ?
Here's part of my code which called summary.ksh :
Code:
if [$1 == "\."]
then
input = pwd
echo "input =" $input
fi
I want to have the full path directory if the input is "."
so
if I'm at the directory /opt/adoc
when I execute the script, I want the $input = /path/of/directory, the result would be something like this :
Code:
/opt/adoc> summary.ksh .
input = /opt/adoc
Could you guys help me ?