Shell scripts and one liners
Thursday, December 11, 2014
Skip Variables in Awk (like shift in Bash except nonsequential)
All you need to do is set the variable to null and they disappear!
$
echo a b c d e f g | awk '{$1="";$3="";print}'
b d e f g
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment