Quantcast
Channel: Active questions tagged bash+awk - Ask Ubuntu
Viewing all articles
Browse latest Browse all 102

Is there any online awk command "explainer"?

$
0
0

First, I am not sure where I should ask this question. Please point me out the correct forum if this place is not meant for this.

I am looking for a tool that can explain awk commands.

As a reference, check out this website: https://regexr.com/

When you hover on the regex part, it explains you what it does. I am looking for the same feature (does not need to be a website, anything will do as long as I can have the information) for awk.

enter image description here

An example of awk command I need to "decipher":

  awk -F"|" 'BEGIN{OFS="|"}{if(FNR>3){for(i=1;i<=NF;i++){sub(/ +$/,"",$i);sub(/^ +/,"",$i)};if(NF!=1){print $2,$3,$4}}}'

Viewing all articles
Browse latest Browse all 102

Trending Articles