I am trying to assign a command to a variable and use it. I have tried every possible quoting variation except the correct one. Here is an example:
CMD="grep description $i | grep "::""
$CMD | nawk ...
Thanks in advance for you help.
I am trying to assign a command to a variable and use it. I have tried every possible quoting variation except the correct one. Here is an example:
CMD="grep description $i | grep "::""
$CMD | nawk ...
Thanks in advance for you help.
CMD="grep description $i | grep "::""
eval $CMD | nawk ...