home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.misc
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!wupost!csus.edu!netcom.com!messina
- From: messina@netcom.com (Tony Porczyk)
- Subject: Re: Regular expression, vi and sed
- Message-ID: <1992Dec24.234801.20080@netcom.com>
- Keywords: RE, VI, SED
- Organization: Messina Software
- References: <1992Dec24.050436.13946@organpipe.uug.arizona.edu>
- Date: Thu, 24 Dec 1992 23:48:01 GMT
- Lines: 14
-
- ron@argus.lpl.Arizona.EDU (Ron Watkins) writes:
-
- >I have a problem which I don't understand. First, I would like to delete
- >a bunch of blank spaces that I have in a very large file. VI can't do it
- >because there isn't enough space in /var or /tmp or whatever. So I tried
- >using sed as follows:
- >sed -e "s/^ +//" < in > out"
- >and it didn't work.
-
- Try:
-
- sed -e "s/^[ ]*//" < in > out
-
- t.
-