/[Frey]/trunk/bin/log.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 /trunk/bin/log.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 669 - (hide annotations)
Tue Dec 2 01:15:21 2008 UTC (14 years, 2 months ago) by dpavlin
File MIME type: application/x-sh
File size: 170 byte(s)
added grep support to log helper with: ./bin/log.sh pattern
1 dpavlin 664 #!/bin/sh
2    
3 dpavlin 669 last_logs=`ls -at var/log/*.log | head -3`
4 dpavlin 664
5 dpavlin 669 if [ ! -z "$1" ] ; then
6     grep "$*" $last_logs | vi -R -
7     exit
8     elif [ ! -z "$last_logs" ] ; then
9     vi $last_logs
10     fi
11    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26