#!/bin/bash
a=23
echo ‘$a’
echo “$a”
your_name=’runoob’
str=”Hello, I know you are \”$your_name\ “! \n”
echo -e $str
echo $str Output
bogon:Desktop macname$ ./test.sh
$a
23
Hello
#!/bin/bash
a=23
echo ‘$a’
echo “$a”
your_name=’runoob’
str=”Hello, I know you are \”$your_name\ “! \n”
echo -e $str
echo $str Output
bogon:Desktop macname$ ./test.sh
$a
23
Hello
I have a line and I want to know if there are any embedded single quote characters in it. Using awk, I tried several variations
badix = index($0,”