/[RFID]/grep-stat.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /grep-stat.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (hide annotations)
Sun Sep 28 22:11:39 2008 UTC (15 years, 6 months ago) by dpavlin
File MIME type: application/x-sh
File size: 287 byte(s)
helper script to grep through portmon dump logs
1 dpavlin 9 #!/bin/sh
2    
3     line=$*
4     if [ -z "$line" ] ; then
5     echo "paste pattern line"
6     read line
7     fi
8     op=`echo $line | sed -e 's/ *//g' -e 's/\(..\)/\1 /g'`
9     echo "*** grep '$op'"
10     grep "$op" * | sed "s/^.*$op/$op/" | sed -e 's/ / /g' -e 's/ at .*$//' -e "s/ ['\.]\..*$//" -e 's/ *$//' | sort | uniq -c
11    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26