named-parse.bash
Size 1 kB - File type text/x-shFile contents
#!/bin/bash
awk '{ if(substr($5,0,6) == "named") { if($6 == "client") { num_client++; } } print num_client;}' /var/log/daemon.log | tail -1
awk 'BEGIN{ num_client = 0; } { if(substr($5,0,6) == "named") { if($6 == "client") { num_client++; } } } END{print num_client;}' /var/log/daemon.log
Copyright 2008,
by the Contributing Authors.
Cite/attribute Resource.
jones. (2007, November 13). named-parse.bash. Retrieved May 20, 2012, from Dixie State College of Utah Web site: http://dixie.educommons.net/computer-and-information-technology/systems-design-and-adminsitration-i/named-parse.bash.
This work is licensed under a
Creative Commons License.


















Click here to get the file
