Quantcast
Channel: When placing the results of a awk operation into a variable, my results are being overwritten - Ask Ubuntu
Browsing all 2 articles
Browse latest View live

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 Article



When 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
Browsing all 2 articles
Browse latest View live




Latest Images