| 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== |
| | + | <syntaxhighlight lang="bash"> |
| | + | cat file.txt | grep -v ^\#|grep . |
| | + | </syntaxhighlight> |