AWK: How to increment values in a column by one
In a previous question I asked how to decrement the value of all entries in a column by 1
The (correct) answer was awk '{ $7--; print $0 }', where $7 means the 7th column
What would an analogous answer for INCREMENTING column v开发者_开发技巧alues be?
Thanks so much
Christian
Use ++
instead of --
.
精彩评论