Re: (e)grep "remove lines with only numbers"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux