Guest User

Untitled

a guest
Jan 16th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. /tmp/GUDI/REWE> echo a b c d | awk '{ OFS = ":"; $2 = "" print $0; print NF }'
  2. awk: { OFS = ":"; $2 = "" print $0; print NF }
  3. awk: ^ syntax error
  4.  
  5. /tmp/GUDI/REWE> awk 'BEGIN {three=$3, $3=$3-10} {print three, $3}' input.txt
  6. awk: BEGIN {three=$3, $3=$3-10} {print three, $3}
  7. awk: ^ syntax error
  8.  
  9. /tmp/GUDI/REWE> awk ' three=$3, $3=$3-10 { print three, $3 }' input.txt
Add Comment
Please, Sign In to add comment