diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-09-21 20:12:23 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-09-21 20:12:23 +0200 |
commit | 00e8bd9bb72eb1357aab486e314b83f93dad0d2c (patch) | |
tree | 2222d756d82d88a0872688ca61cdadd147a84ddb /tests/sort.sh | |
parent | de340a7f1a9cf21931d94ea8814545c4b2d172b0 (diff) |
Handle all variable header parts in helper scripts instead ot test tasks
Thus the tests tasks can be simplified and all exceptions can be handled in
the helper scripts.
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'tests/sort.sh')
-rwxr-xr-x | tests/sort.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sort.sh b/tests/sort.sh index c5edad1..904b216 100755 --- a/tests/sort.sh +++ b/tests/sort.sh @@ -1,5 +1,5 @@ #!/bin/sh -head -n 7 $1 > .foo -tail -n +8 $1 | grep '[[:alnum:]]' | sort >> .foo -rm $1 +sed '/Members:/q' $1 > .foo +awk '/Members:/,EOF' $1 | grep -v 'Members:' | sort >> .foo +rm -f $1 |