Open nctiggy opened 6 months ago
hmm... a dirty trick: just escape the square brackets with a backslash and ignore the warnings which awk
throws about them:
version_command: "docker --version | awk -F'\[, \]' '{print $3}' | awk -F'\[-\]' '{print $1}'"
Hi, Thanks for your wonderful function! I have the following yaml
When I parse the docker version command the first awk command loses some info. In particular the comma and the following space. Any way to work around this?