Pass argument with single quotes

by Nirmala 2010-01-25 15:49:32

Pass argument with single quotes
If you want to pass argument with single quotes just follow the below step
(*)Create file and type as echo $1
(*)Execute file as sh test.sh "pp'"
Output
pp'

Other Method
(*)Execute file as sh test.sh pp\'

Tagged in:

1082
like
0
dislike
0
mail
flag

You must LOGIN to add comments