grep

Grep cheat sheet

Tag(s):

# Grep tab using Perl regex
grep -P "\t"
 
# Select multiple text patterns(e.g "this" or "that")

Replace multiple grep piping

Tag(s):

Replace multiple grep piping with the following because piping is expensive:

Delete matching line

Tag(s):

# Shell(bash3.2+)
while read -r line
do

grep tab

Tag(s):

Tell grep to use the regular expression as defined by Perl.

grep -P "\t"

http://askubuntu.com/questions/53071/how-to-grep-for-tabs-without-using-literal-tabs-and-why-does-t-not-work

Subscribe to RSS - grep