summaryrefslogtreecommitdiffstats
path: root/tests/sort.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sort.sh')
-rwxr-xr-xtests/sort.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/sort.sh b/tests/sort.sh
index a01d066..907148a 100755
--- a/tests/sort.sh
+++ b/tests/sort.sh
@@ -1,5 +1,6 @@
#!/bin/sh
-awk '/^[A-Za-z]+:/ { print $0 }' $1 > .foo
-awk '!/^[A-Za-z]+:/ && !/inding/ { print $0 }' | sort >> .foo
+head -n 7 $1 > .foo
+tail -n +8 $1 | grep '[[:alnum:]]' | sort >> .foo
+echo >> .foo
rm $1