about summary refs log tree commit diff stats
path: root/trunk/first-lines.sh
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/first-lines.sh')
-rw-r--r--trunk/first-lines.sh4
1 files changed, 1 insertions, 3 deletions
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 @@
1#!/bin/bash 1#!/bin/bash
2 2
3outFile="$1"; 3outFile="$1";
4header="$2"; 4shift 1;
5shift 2;
6glob="$@"; 5glob="$@";
7 6
8firstLineOf() { # $1 = file 7firstLineOf() { # $1 = file
@@ -18,7 +17,6 @@ firstLineOf() { # $1 = file
18} 17}
19 18
20echo -n "Compiling ${outFile}" 19echo -n "Compiling ${outFile}"
21cat "$header" > $outFile
22 20
23for file in $glob; do 21for file in $glob; do
24 # Copy first line to $outFile & link 22 # Copy first line to $outFile & link