Ignore:
Timestamp:
03/05/10 23:40:25 (14 years ago)
Author:
tim
Message:

merged Tobias Mueller's patch with some changes
updated version number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/reglookup-timeline

    r91 r170  
    55# timelines for investigations.
    66#
    7 # Copyright (C) 2005-2007 Timothy D. Morgan
     7# Copyright (C) 2005-2007,2010 Timothy D. Morgan
    88#
    99# This program is free software; you can redistribute it and/or modify
     
    2525usage()
    2626{
    27   echo "Usage: $0 [-H] <REGISTRY_FILE> [<REGISTRY_FILE> ...]" 1>&2
     27  echo "Usage: $0 [-H] [-V] <REGISTRY_FILE> [<REGISTRY_FILE> ...]" 1>&2
    2828  echo "   -H  Omit header line" 1>&2
     29  echo "   -V  Include values with parent timestamps" 1>&2
    2930}
    3031
     
    4142fi
    4243
     44OPTS='-t KEY'
     45if [ "$1" = "-V" ]; then
     46  OPTS='-i'
     47  shift
     48fi
     49
    4350if [ "$PRINT_HEADER" = "true" ]; then
    4451  echo "MTIME,FILE,PATH"
     
    4653
    4754for F in $@; do
    48   reglookup -t KEY -H "$F" | awk -F',' '{ printf "%s,'"$F"',%s\n",$4,$1; }'
     55  reglookup $OPTS -H "$F" | awk -F',' '{ printf "%s,'"$F"',%s\n",$4,$1; }'
    4956done | sort
Note: See TracChangeset for help on using the changeset viewer.