cat access_log.2012-03-29|awk '{print $7, $20}'| sed 's/\/[^a-z]/ /g'
Thursday, 29 March 2012
Sunday, 18 March 2012
Monday, 12 March 2012
sqlplus install error resolution
http://www.yoursearchbuddy.com/sqlplus-error-loading-shared-libraries-libsqlplusso
the above solution is for the following error:
./sqlplus: error while loading shared libraries: libsqlplus.so
the above solution is for the following error:
./sqlplus: error while loading shared libraries: libsqlplus.so
Wednesday, 7 March 2012
awk print coulmns from last of a line
awk ' { print ( $(NF) ) }' --> Last column
awk ' { print ( $(NF-3) ) }' --> 3rd from Last column
awk ' { print ( $(NF-3) ) }' --> 3rd from Last column
Sunday, 4 March 2012
awk command to get max value from a file
cat filename |awk 'max=="" || $1 > max {max=$1} END{ print max}'
concurrency from webserver access logs
cat access_log.******* |awk '{print $1,$4,$5,$6,$7}'|awk '{print $2}'|sort | uniq -c
Saturday, 3 March 2012
TCP_DUMP
http://www.alexonlinux.com/tcpdump-for-dummies
tcpdump -ni eth1 -w file.cap -s 0 -c 1000 not port 22
tcpdump -ni eth1 -w file.cap -s 0 -c 1000 not port 22
Subscribe to:
Posts (Atom)