What is syntax for String concatenation?
I have $1 as directory.
$var is some variable value
'/' String value.
How do I have to concatenate if I have to run utility -
util $1 followed by '/' followed by $var
There is no space between these three.
bhargav
2
$ x.sh "/apps/opt" "/informix"
/apps/opt/informix
$ x.sh "/apps/opt" "/informix"
$ export file1="informix"
$ x.sh "/apps/opt" "/$file1"
/apps/opt/informix
$ x.sh "/apps/opt" "$file1"
/apps/optinformix
$ x.sh "/apps/opt" "/$file1"
/apps/opt/informix
$ cat x.sh
#!/usr/bin/ksh
echo $1$2
Thanks a ton, it helps!!!