I have some files that need mass editing. The problem is that some lines are numbered and others are not - I want none of them to be numbered.
Example:
File-1:
blah
blah
blah
blah
23 blah
24 blah
25 blah
blah
blah
13 blah
2 blah
What I want:
File-2:
blah
blah
blah
blah
blah
blah
blah
blah
blah
blah
blah
blah
I am not good with sed or awk but have a hunch this is where they shine. I would like to run is:
cat File-1 | {code to remove everything before a space in each line} >> File-2
Any idea how to write the {code} part?