Ignore:
Timestamp:
03/28/07 15:22:38 (18 years ago)
Author:
tim
Message:

minor changes to Makefiles

Added one warning on an unlikely condition in reglookup

Added the -H option to reglookup-timeline for ommiting the header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/reglookup-timeline

    r68 r90  
    55# timelines for investigations.
    66#
    7 # Copyright (C) 2005-2006 Timothy D. Morgan
     7# Copyright (C) 2005-2007 Timothy D. Morgan
    88#
    99# This program is free software; you can redistribute it and/or modify
     
    2525usage()
    2626{
    27   echo "Usage: $0 <REGISTRY_FILE> [<REGISTRY_FILE> ...]" 1>&2
     27  echo "Usage: $0 [-H] <REGISTRY_FILE> [<REGISTRY_FILE> ...]" 1>&2
    2828}
    2929
     
    3434fi
    3535
    36 echo "MTIME,FILE,PATH"
     36PRINT_HEADER=true
     37if [ "$1" = "-H" ]; then
     38  PRINT_HEADER=false
     39  shift
     40fi
     41
     42if [ "$PRINT_HEADER" = "true" ]; then
     43  echo "MTIME,FILE,PATH"
     44fi
     45
    3746for F in $@; do
    3847  reglookup -t KEY -H "$F" | awk -F',' '{ printf "%s,'"$F"',%s\n",$4,$1; }'
Note: See TracChangeset for help on using the changeset viewer.