SED Command to remove first digits and spaces of each line -


i have simple text file in below format.

1  12658003y 2  34345345n 3  34653785y 4  36452342n 5  86747488y 6  34634543y on 10  37456338y 11  33535555y 12  37456378y on 100  23432434y 

as can see there 2 white spaces after first number.

i'm trying write sed command remove digits before whitespaces. there sed command remove spaces , number before spaces?

output file should below.

12658003y 34345345n 34653785y 36452342n on.. 

please assist. i'm new shell scripting.

your sed command be,

sed 's/.* //g' file 

this remove first numbers along space followed.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -