projects
/
grml-tips.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add grml-tips2html.sh, thanks nico
[grml-tips.git]
/
grml_tips
diff --git
a/grml_tips
b/grml_tips
index
e044aaf
..
e5ad0da
100644
(file)
--- a/
grml_tips
+++ b/
grml_tips
@@
-413,13
+413,17
@@
Test sound:
Improved grep version:
% glark
Improved grep version:
% glark
+--
+Grep with highlighting:
-glark grep extract-matches
+% grep --color=auto ...
+% hgrep ...
--
--
-Highlith
+Extract matches when grepping:
-grepc
-hgrep
+Usage examples:
+% ifconfig | grepc 'inet addr:(.*?)\s'
+% ifconfig | glark --extract-matches 'inet addr:(.*?)\s'
--
Output text as sound:
--
Output text as sound: