From: Scott Worley Date: Sat, 31 May 2014 18:04:37 +0000 (-0700) Subject: Allow the log file to be specified as an argument X-Git-Tag: v1.0.0~4 X-Git-Url: http://git.scottworley.com/keystroke-timestamps/commitdiff_plain/00f4619f0cf7df1a5ea4ff3d1ca0cd21c2aa171a?ds=inline;hp=7c9f27edf74be0155ae6a1682fdc6a8555846c83 Allow the log file to be specified as an argument --- diff --git a/gaps.sh b/gaps.sh index 46a05cc..cf95104 100755 --- a/gaps.sh +++ b/gaps.sh @@ -1,7 +1,7 @@ #!/bin/bash threshold=${1:-3600} -LOGFILE="$HOME/keystroke-timestamps.log" +LOGFILE="${2:-$HOME/keystroke-timestamps.log}" awk -vthreshold="$threshold" ' BEGIN {