I am trying to get grep with awk command into variable.
But facing error.
Could someone pls help.
But facing error.
Could someone pls help.
[mhs@flexiaf1 ~]$ cat test_file
DEPLOYMENT=”abc” # com
cluster=”bcn”
[mhs@flexiaf1 ~]$ grep DEPLOYMENT test_file | awk -F “”” ‘{ print $2 }’
abc
[mhs@flexiaf1 ~]$ a=`echo “grep DEPLOYMENT test_file | awk -F “\”” ‘{ print $2 }'”` ; echo $a
-bash: command substitution: line 1: unexpected EOF while looking for matching `”‘
-bash: command substitution: line 2: syntax error: unexpected end of file
[mhs@flexiaf1 ~]$