I have files with hundreds of lines of varying length. I want to find each line with the string "New" and print the first 7 characters and the 10th from the last character.
1234567 New line with irrelevant info x end line 2345678 irrelevant line 3456789 New line with different irrelevant info y end line 4567890 irrelevant line 5678901 New line with yet more irrelevant info z end line
And my output would be:
1234567 x 3456789 y 5678901 z