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

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

 



lists@xxxxxxxxxxxxxxx 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 ]*$'

?

-
: 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