Ex:
Input file
A<0>
A<1>
A_D2<2>
A_D2<3>
A<4>
A_D2<6>
A<9>
A_D2<10>
A<13>
Desired Output:
A<0>
A<1>
A_D2<2>
A_D2<3>
A<4>
-----
A_D2<6>
-----
-----
A<9>
A_D2<10>
-----
-----
A<13>
Just care about the number in the angle bracket.
If the number is not continuous ,then add some symbol (or just add newline) until the number continue agian.
In this case, number 5,7,8,11 and 12 are missing.
Can anyone solve this problem by using awk or sed (even grep) command?
I am a beginner in Linux. Please explain the details of the whole command line.