I am trying to read a line at a time from a file and format the output only if it matches a certain pattern. Below is an example of a line :
R |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/77.77G |00000001/99.99G |00000000/ |00000000/99.99G |00000001/99.99E |00000006/99.99F |00000000/99.99J |00000000/88.88G |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000
I only need to print the numbers that are with the letters.
And the numbers and letters might not always be the same. The above example is only 1 line and the fields are seperated by a | .
Thanks for your help.
R |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/77.77G |00000001/99.99G |00000000/ |00000000/99.99G |00000001/99.99E |00000006/99.99F |00000000/99.99J |00000000/88.88G |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000/ |00000000
I only need to print the numbers that are with the letters.
And the numbers and letters might not always be the same. The above example is only 1 line and the fields are seperated by a | .
Thanks for your help.