I love reading and writing Regular Expressions

Reading and writing Regular Expressions is the only time I feel I do what people think computer programmers do.

s/(R\w{6}([ ](\w{2,11}|I)){18}\.)/It is like magic\./g

Advertisements

Recursive Grep Example

Nothing really needing explaining here, but wanted an example for doing a recrsive grep handy as I can never remember it.

 

grep -RH –include “*.java” TEXT_I_AM_LOOKING_FOR *