Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux comand: grep
(view source)
Revision as of 20:58, 10 July 2018
71 bytes added
,
20:58, 10 July 2018
no edit summary
Line 54:
Line 54:
== Remove comments and blank lines ==
== Remove comments and blank lines ==
cat /etc/apache2/sites-enabled/default-ssl.conf | grep -v '^$\|^\s*\#'
cat /etc/apache2/sites-enabled/default-ssl.conf | grep -v '^$\|^\s*\#'
+
+
== Grep with blanks ==
+
cat dig_output.txt | grep -E 'IN[[:blank:]]A'
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