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

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

trunk/bin/log.sh revision 664 by dpavlin, Mon Dec 1 23:39:39 2008 UTC branches/no-pager/bin/log.sh revision 702 by dpavlin, Wed Dec 3 21:12:43 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.702

  ViewVC Help
Powered by ViewVC 1.1.26