Changes
Jump to navigation
Jump to search
← Older edit
Linux comand: grep
(view source)
Revision as of 07:21, 28 January 2020
138 bytes added
,
07:21, 28 January 2020
m
→Grep with blanks
Line 61:
Line 61:
==Grep with blanks==
==Grep with blanks==
−
cat dig_output.txt | grep -E '
IN[[
:
blank:]]
A'
+
<syntaxhighlight lang="bash">
+
cat dig_output.txt | grep -E '
INblank
:A'
+
cat LogsAndreaPasswords.csv | awk -F ',' '{print $1 "," $2}' | uniq -c | sort -n | grep '^\s*1 '
+
</syntaxhighlight>
−
== Grep remove comments and blank lines ==
+
==Grep remove comments and blank lines==
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
cat file.txt | grep -v ^\#|grep .
cat file.txt | grep -v ^\#|grep .
</syntaxhighlight>
</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