linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: zavandi <zavandi@rdslink.ro>
To: lists@lastisfirst.com
Cc: Linux-Admin <linux-admin@vger.kernel.org>
Subject: Re: (e)grep "remove lines with only numbers"
Date: Thu, 08 Jul 2004 11:56:15 +0300	[thread overview]
Message-ID: <40ED0C2F.7020206@rdslink.ro> (raw)
In-Reply-To: <1089272976.40ecfc902fd0e@www.lastisfirst.com>

lists@lastisfirst.com wrote:
> 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?

Maybe something like:

egrep -v '^[0-9 ]*[0-9][0-9 ]*$'

?


  reply	other threads:[~2004-07-08  8:56 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 [this message]
2004-07-08 10:03   ` A. R. Vener
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=40ED0C2F.7020206@rdslink.ro \
    --to=zavandi@rdslink.ro \
    --cc=linux-admin@vger.kernel.org \
    --cc=lists@lastisfirst.com \
    /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).