Quote:
Originally Posted by d.mintis
it is more practicing. I tried the following awk '{$(NF+1.5)=20302+1*int(NR-1)); print}'
So
1. I set a new field
2. I need to find the right calc so as to create the following numbering pattern -> 1 2 4 5 7 8 ....
|
Can't help much with awk, but it looks like you're skipping every third number, yes? So only print if the number is not divisible by 3. Don't have a clue how to do that.
Have you read the awk man page or done a comprehensive web search?