Re: grep

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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Aug 28, 2007 at 10:31:08AM -0400, Scott McClanahan wrote:
> On Tue, 2007-08-28 at 10:27 -0400, Stephen Harris wrote:
> >   $ sed '/bar/,+5d' xx
> >   line 1
> >   line 2
> >   line after 6
> >   line after 7
> > 
> Beautiful man! Hats off. I've never used sed like that but I'll surely
> remember that one.  Thanks from everybody.

"sed" is a very nice tool. You can do amazing things with it. I once did
a XML to HTML (limited) parser in it. I know someone that even coded
a "Sokoban"-like game with sed and nothing else.

Mastering sed really makes life much easier.

[]s

- -- 
Rodrigo Barbosa
"Quid quid Latine dictum sit, altum viditur"
"Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFG1EjWpdyWzQ5b5ckRAqj+AJ49ACHmMgVADC57U/JKjjzh7COKSwCfYcFB
RGFvx7rmGVtV9vb4MKiY/qY=
=/Z+9
-----END PGP SIGNATURE-----
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux