bash - Finding lines not starting the same, and editing those. (sed/vim) - Ask Ubuntu


i find lines start number 1 5 not start same pattern other line. then, put * in beginning of lines. there way in vim, sed, or maybe other options?

thanks in advance!

the following command in vim has been asked:

:8,$s/^\([1-5].*\t\)\(.*\n[^\1].*\)/\*\1\2/g 

Comments

Popular posts from this blog

debian - Kali Linux - Debootstrap error Failed to determine codename for the release - Super User

crash - Windows Rundll32 (child process of DllHost) is crashing. How can I even identify it? - Super User

Windows XP installation, no previous version of Windows NT - Super User