Hi,
I need to write a statement which will read a data from a specific line based on condition and then read related lines to delete.
For example:
Here one set of record for a user id starts from header
|T and ends at
.T . If position 2-10 is 0 then script should remove the set from the file. Here for user id
97394 position 2-10 is all 0. So this set should eb deleted from the file.
Need your help plz. I need to create a shell script for this.
I need to write a statement which will read a data from a specific line based on condition and then read related lines to delete.
For example:
Code:
|T20150322
100930290
208940000
598000080
700000000
930000202
100000000
.T56789
|T20150322
0100000000
0200000000
0500000000
9000000000
1000000000
.T97394[This user id]
Need your help plz. I need to create a shell script for this.