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

Diff of /trunk/bin/log.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 664 by dpavlin, Mon Dec 1 23:39:39 2008 UTC revision 669 by dpavlin, Tue Dec 2 01:15:21 2008 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3  vi `ls -at var/log/*.log | head -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    

Legend:
Removed from v.664  
changed lines
  Added in v.669

  ViewVC Help
Powered by ViewVC 1.1.26