Re: Scripting question
Alexis Vasquez <[email protected]>
| Newsgroups | gmane.linux.redhat.release.psyche |
|---|---|
| Message-ID | <[email protected]> |
--- Alexis Vasquez <[email protected]> escribió: > --- Ted Zlatanov <[email protected]> escribió: > On > Fri, 11 Jul 2003, [email protected] wrote: > > > I have a file with over 38000 lines in. Some of > > the lines have a > > > space at the beginning and I can delete those > > lines. Is there a > > > way using a script or vi that I can delete the > > lines that begin > > > with a space? > > > in vi > :1,$ s/^[ ]//g > sorry about the anterior post. just delete the character not the line it woud be like : :g/^[ ]/d ___________________________________________________ Yahoo! Messenger - Nueva versión GRATIS Super Webcam, voz, caritas animadas, y más... http://messenger.yahoo.es -- Psyche-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/psyche-list