/[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

Contents of /grep-stat.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (show annotations)
Sun Sep 28 22:11:39 2008 UTC (15 years, 7 months ago) by dpavlin
File MIME type: application/x-sh
File size: 287 byte(s)
helper script to grep through portmon dump logs
1 #!/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