Technology Blog
Sunday, 1 January 2017
How to make grep highlight keyword with colors?
add option --color
e.g.
jtony@genoa:~/learn/shell/UserGuide$ grep -rn --color 'in[du]' string2.txt
1:Mozilla/4.0 (compatible; MSIE 5.0; W
ind
ows NT; DigExt)
2:Mozilla/4.75 [en](X11;U;L
inu
x2.2.16-22 i586)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment