Answer by Byte Commander for When placing the results of a awk operation into...
Use Bash's modern process substitution syntax $( ... ) or the old process substitution with only backticks ` ... `: SERVERS=$( $COMMAND $ARGUMENTS | awk -F "commit-sha = " '{ print $2 }' ) What you...
View ArticleWhen placing the results of a awk operation into a variable, my results are...
I have a bash script which will: Call a python script called get-server-status.py Pipe these results into an awk command which will get a commit-sha from this output Put the final result into a...
View Article
More Pages to Explore .....