Search This Blog

Sunday, May 15, 2011

The grep!

So after being away for a while, I am now back and with something to explain. Since time is of the essence here goes.

The grep command in UNIX and Linux.

g - stands for global
re - stands for regular expression or regex as it is affectionately called
p - print the regular expression if you find it.

In a nutshell "grep" meaning to do a global search on files or directories for an expression then print the files or directories that contain the expression if found.

grep has also evolved to egrep which has more advanced features.

Keeping it simple here is grep explained.

Until next time,
Walk good.