regex - decimal pattern matching -


I have a large file and the line pattern is given below:

  MDQ [ 11: 15], Io, MDQ [10:14] ,,,, MDQ [12:16], TPR_AWD [11:15]   

I want to modify this file below : MDQ [11], Io, MDQ [10] ,,,, MDQ [12], TPR_AWD [11] MDQ [12], Io, MDQ [11] ,,,, MDQ [13], TPR_AWD [12] MDQ [13], Io, MDQ [12] ,,,, MDQ [14], TPR_AWD [13] MDQ [14], Io, MDQ [13] ,,,, MDQ [15], TPR_AAWD [14]

I have it in sed / awk / perl / csh / vim How can I apply? Please help

awk -F '[] []' '{partition ($ 2 Split ($ 4, b, /: /) partition ($ 6, c, /: /) partition ($ 8, d, /: for A and I = 0; i & lt; a [2] /) [1]; i ++) {printf ("% s [% d]% s [% d]% s [% d]% s [% d] \ n", $ 1, a [1] + I, $ 3, b [1] + i, $ 5, c [1] + i, $ 7, d [1] + i)}} '

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -