I have a simple text file in below format.
1 12658003Y 2 34345345N 3 34653785Y 4 36452342N 5 86747488Y 6 34634543Y so on 10 37456338Y 11 33535555Y 12 37456378Y so on 100 23432434Y As you can see there are two white spaces after first number.
I'm trying to write SED command to remove the digits before whitespaces. Is there any SED command to remove spaces and number before spaces?
Output file should look like below.
12658003Y 34345345N 34653785Y 36452342N so on.. Please assist. I'm very new to shell scripting.
sedyou can try withgrep -o '[0-9]+Y'