awk find missing number in sequence from file1 and append to column in file2
问题 hi as suggested in previous question, i will try more clarify what i want to achieve. as in file1, in column $4 i have numbers which are not continuosly sequenced like 1,2,3,4,5.. , it means i need print those missing ones e.g. after number 3 i should get number 4 and so on cat file1 A R5 A48 1 B R5 A48 2 C R4 A48 3 D R8 A48 15 E R9 A48 22 F R20 B55 21 G R55 B22 19 R B1 I77 14 AA B8 PP 18 BX A255 PA 7 CA A77 PB 10 WW W7 PX 11 i find out partly solution in this awk one liner returning arr=($