Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux comand: grep
(view source)
Revision as of 14:18, 22 January 2020
127 bytes added
,
14:18, 22 January 2020
m
→Grep with blanks
Line 62:
Line 62:
==Grep with blanks==
==Grep with blanks==
cat dig_output.txt | grep -E 'IN[[:blank:]]A'
cat dig_output.txt | grep -E 'IN[[:blank:]]A'
+
+
== Grep remove comments and blank lines ==
+
<syntaxhighlight lang="bash">
+
cat file.txt | grep -v ^\#|grep .
+
</syntaxhighlight>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version