From: "A. R. Vener" <salt@aero-vision.com>
To: Linux-Admin <linux-admin@vger.kernel.org>
Subject: Re: (e)grep "remove lines with only numbers"
Date: Thu, 8 Jul 2004 06:03:56 -0400 [thread overview]
Message-ID: <20040708060356.A25323@cougar.aero-vision.com> (raw)
In-Reply-To: <40ED0C2F.7020206@rdslink.ro>; from zavandi@rdslink.ro on Thu, Jul 08, 2004 at 11:56:15AM +0300
Try:
grep -v "^[0-9]*$" file > newfile
> > This is seem like it should be a simple task for grep.
> > I have a file that looks like this:
> >
> >
> >
> > \section{Chapter 1}
> >
> > 1
> > One fish two fish
> > 2 3
> >
> > Red fish blue fish
> >
> >
> > What I want to do i remove the line that have numbers on them and nothing else?
Rudy Vener
next prev parent reply other threads:[~2004-07-08 10:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-08 7:49 (e)grep "remove lines with only numbers" lists
2004-07-08 8:56 ` zavandi
2004-07-08 10:03 ` A. R. Vener [this message]
2004-07-08 11:08 ` M. B. Heath
2004-07-08 15:24 ` zavandi
2004-07-08 16:01 ` Malcolm Heath
2004-07-08 18:19 ` lists
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040708060356.A25323@cougar.aero-vision.com \
--to=salt@aero-vision.com \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).