Globally Replace Square Braces
Globally Replace Square Braces
The the opening and closing square braces are replaced with a space.
Can then use positional parameters.
/^(cme|cbt|lif|smx|lifee)/ {
gsub("[\\[\\]]"," ",$0)
printf "%-18s%8d\n", $1,$2
}
Previous slide
Next slide
Back to the first slide
View Graphic Version