[Sussex] Grep evening
Steve Dobson
steve at dobbo.org
Wed Aug 24 21:41:42 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All
Sorry I can't make it. But grep and regexp are used all over the place.
Don't forget the command line (bash), nvi & vim, and emacs - they all
use regular expressions.
Steve
On 24/08/11 19:18, Fay Zee wrote:
> Hi All
>
> I suggested grep for this month's talk and enough interest has been
> shown to give it a go.
>
> It's used a lot with log files, configs, etc.
>
> But just recently, I've been working on some light manuscript
> manipulation, post scan - removing page numbers, adding new lines
> between paragraphs, rejoining line breaks, removing redundant white
> space, identifying and marking section headings and the like.
>
> I solved all these tasks by harnessing grep and sed and the almighty
> power of regexp.
>
> Along the way I found an exceptional article [1] by a guy (Peteris
> Krumins) who really knows how to research teach the concepts and who
> had found and used a excellent tutorial [2] by Bruce Barnett and a
> cheat sheet of one-liners [3] by Eric Pement, which Peteris' article
> examines in minute detail. Highly beneficial.
>
> Then out of the blue, my manager tossed a folder full of 6 months of
> web log files to be filtered and analyzed for a customer. "Just do one
> month. Don't spend too long on this!"
>
> Why would I need to? All 6 months in one swoop: easy and fast! I told
> him I'd used grep on Linux and he recalled using wingrep [4] long ago.
>
>
> [1] Famous Sed One-Liners Explained by Peteris Krumins
> http://www.catonmat.net/blog/sed-one-liners-explained-part-one/
> http://www.catonmat.net/blog/sed-one-liners-explained-part-two/
> [2] Sed - An Introduction and Tutorial by Bruce Barnett
> http://www.grymoire.com/Unix/Sed.html
> [3] Sed one-liners compiled by Eric Pement
> http://www.catonmat.net/blog/wp-content/uploads/2008/09/sed1line.txt
> [4] If you need grep on Windows, use the DOS find command or google
> for wingrep.
>
> Best Regards,
> Fay
> East Grinstead Linux User Group
> www.eglug.org.uk
>
>
>
>
>
>
> --
> Sussex mailing list
> Sussex at mailman.lug.org.uk
> E-mail Address: sussex at mailman.lug.org.uk
> Sussex LUG Website: http://www.sussex.lug.org.uk/
> https://mailman.lug.org.uk/mailman/listinfo/sussex
- --
Steve Dobson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFOVXAPu7HOw0Q66oERAhmeAKCxzvyKb3QlebKQdwtstMrPvcRYxgCgqcqz
PYYx50OHl5dJ5NhlZkaQl7I=
=UUnt
-----END PGP SIGNATURE-----
More information about the Sussex
mailing list