M@ Pr0 Xperiences - K@rthik
Wednesday, August 3, 2011
Grep Strikes Again...
Grep : OR condition
===================
Eg:
Matching strings that starts with DOLLAR Symbol ($) and also match any of digits 1 or 1 or 3
cat
| grep -E '^$1|2|3'
Grep AND Condition
==================
Eg:
Matching strings that starts with DOLLAR Symbol ($) and string "123"
cat
| grep -E '^\$.*123'
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
Newer Post
Older Post
Home
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.