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

Contents of /trunk/bin/log.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 669 - (show 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 #!/bin/sh
2
3 last_logs=`ls -at var/log/*.log | head -3`
4
5 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