From mboxrd@z Thu Jan 1 00:00:00 1970 From: zavandi Subject: Re: (e)grep "remove lines with only numbers" Date: Thu, 08 Jul 2004 11:56:15 +0300 Sender: linux-admin-owner@vger.kernel.org Message-ID: <40ED0C2F.7020206@rdslink.ro> References: <1089272976.40ecfc902fd0e@www.lastisfirst.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1089272976.40ecfc902fd0e@www.lastisfirst.com> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: lists@lastisfirst.com Cc: Linux-Admin 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 ]*$' ?