From 529ede146afd125c76d86eb55969983af8ee21db Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 4 Apr 2015 23:58:22 -0700 Subject: Some revision & TOC inclusion --- trunk/first-lines.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'trunk/first-lines.sh') diff --git a/trunk/first-lines.sh b/trunk/first-lines.sh index fb06026..1378a82 100644 --- a/trunk/first-lines.sh +++ b/trunk/first-lines.sh @@ -1,8 +1,7 @@ #!/bin/bash outFile="$1"; -header="$2"; -shift 2; +shift 1; glob="$@"; firstLineOf() { # $1 = file @@ -18,7 +17,6 @@ firstLineOf() { # $1 = file } echo -n "Compiling ${outFile}" -cat "$header" > $outFile for file in $glob; do # Copy first line to $outFile & link -- cgit 1.4.1-21-gabe81