summaryrefslogtreecommitdiffstats
path: root/tests/sort.sh
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2010-04-22 17:11:01 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2010-04-22 17:11:01 +0200
commit9638135a8ea91a157a68148fb1d84edec52c313b (patch)
treeb36186bd6411dd06070270a375cda6e14f4c3a1d /tests/sort.sh
parent456b1d993711eb4297012ad4a881c459c0511358 (diff)
Nineth stage to ipset-5
Update tests.
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