Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Shell script doubt in special character

$
0
0
when I execute the unix commands its works normally in the 1st part.

When I the tried the same in shell scripting the directory is not displayed in 2nd part example. please let me know what needs to be done.

Unix :

Code:

client=~zsvdbs
 
echo $client
/shome/zsvhome/zsvdbs

Using Shell script :

Code:

+ client=~zsvdbs
echo $client
+ echo ~zsvdbs
~zpsdba

I need the output as /shome/zsvhome/zsvdbs instead ~zpsdba

Please let me know wat needs to be done

Viewing all articles
Browse latest Browse all 16232

Trending Articles