17 views

grep -n to print the filename and line number of a matching grep result

$ grep -n webmaster *
httpd-vhosts.conf:2:    ServerAdmin webmaster@askdevops.org
httpd-vhosts.conf:11:    ServerAdmin webmaster@askdevops.org
httpd-vhosts.conf:50:    ##ServerAdmin webmaster@askdevops.org
httpd-vhosts.conf:59:    ##ServerAdmin webmaster@askdevops.org
Sep 14, 2015 by | 17 views
DevOpsRun.com is LIVE!

Articles for DevOps Geeks
MobaXterm Customization
CHMOD Explained!
Bash history powerful tips
Ubuntu bash from Windows
..