- Timestamp:
- 03/05/10 23:40:25 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/reglookup-timeline
r91 r170 5 5 # timelines for investigations. 6 6 # 7 # Copyright (C) 2005-2007 Timothy D. Morgan7 # Copyright (C) 2005-2007,2010 Timothy D. Morgan 8 8 # 9 9 # This program is free software; you can redistribute it and/or modify … … 25 25 usage() 26 26 { 27 echo "Usage: $0 [-H] <REGISTRY_FILE> [<REGISTRY_FILE> ...]" 1>&227 echo "Usage: $0 [-H] [-V] <REGISTRY_FILE> [<REGISTRY_FILE> ...]" 1>&2 28 28 echo " -H Omit header line" 1>&2 29 echo " -V Include values with parent timestamps" 1>&2 29 30 } 30 31 … … 41 42 fi 42 43 44 OPTS='-t KEY' 45 if [ "$1" = "-V" ]; then 46 OPTS='-i' 47 shift 48 fi 49 43 50 if [ "$PRINT_HEADER" = "true" ]; then 44 51 echo "MTIME,FILE,PATH" … … 46 53 47 54 for 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; }' 49 56 done | sort
Note: See TracChangeset
for help on using the changeset viewer.