开发者

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 --.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜