I'm stuck with a rather silly bash script:
CMD="get database" / #embedded,specific platform command
DATA="tree path Uo5 Uu7"
custom_command='grep -i Arte | awk -F '[:]' '{print $2}'
And this is what I want to do:
VAR=`$CMD "show data $DATA" | $custom_command` <--not working
VAR=`$CMD "show data $DATA" | grep -i Arte | awk -F '[:]' '{print $2}'` <--working
Using $custom_command breaks the script. How can i use $custom_command to VAR?
I use custom_command to avoid using the same string over and over again. Can you help?