Ok ... I think I am getting a better picture (I hope)
So as far as columns go we are simply looking at 1 column is 1 character (yes)
So to restate the question, we are searching for lines that start with a space followed by the number 70 and some more white space. We are trying to retrieve data from the the 8th
character on the line and the subsequent 12 characters.
Based on this the current data return no data, however I believe that due to you pasting directly within your question we have lost information about white space (in the future
if you place code or data in [code][/code] tags, this type of information will be preserved).
So i have edited the information to look as below:
Code:
1SASSHIS8 CA WORKLOAD AUTOMATION SE CONTROL CARD EDIT 08/28/14 12:50 PAGE 1
0------------------------------------------------------------------------------------------------------------------------------------
0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 EDIT COMMENTS
....5....0....5....0....5....0....5....0....5....0....5....0....5....0....5....0----------------------------------------------------
070 142401230142401250 HIS8-09 NO CONTROL CARD ERRORS DETECTED.
70 142401230142401250 HIS8-18 CONTROL CARD EDIT FINAL RESULTS.
1SASSHIS8 CA WORKLOAD AUTOMATION SE CONTROL CARD EDIT 08/28/14 12:50 PAGE 2
0------------------------------------------------------------------------------------------------------------------------------------
0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 EDIT COMMENTS
....5....0....5....0....5....0....5....0....5....0....5....0....5....0....5....0----------------------------------------------------
- *** T O T A L S ***
0 001 CARDS READ.
0 001 CARDS ACCEPTED.
0 000 CARDS REJECTED.
-
-2471291 ...LOG RECORDS READ.
00011526 ...RECORDS EXTRACTED FOR --- 70
1
Here we now see on line 6 we have the scenario where the following grep will pick up data we are looking for:
Code:
$ grep -E '^ 70 ' in_file
70 142401230142401250 HIS8-18 CONTROL CARD EDIT FINAL RESULTS.
Assuming I am on the correct path here, would the data to be returned be: