From 00f4619f0cf7df1a5ea4ff3d1ca0cd21c2aa171a Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sat, 31 May 2014 11:04:37 -0700 Subject: [PATCH 1/1] Allow the log file to be specified as an argument --- gaps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.51.2