]>
Commit | Line | Data |
---|---|---|
5824d651 BS |
1 | #!/bin/sh |
2 | ||
3 | hxtoh() | |
4 | { | |
5 | flag=1 | |
fb21ced7 | 6 | while read -r str; do |
5824d651 BS |
7 | case $str in |
8 | HXCOMM*) | |
9 | ;; | |
3885e2c2 | 10 | SRST*|ERST*) flag=$(($flag^1)) |
5824d651 BS |
11 | ;; |
12 | *) | |
004efc96 | 13 | test $flag -eq 1 && printf "%s\n" "$str" |
5824d651 BS |
14 | ;; |
15 | esac | |
16 | done | |
17 | } | |
18 | ||
5824d651 BS |
19 | case "$1" in |
20 | "-h") hxtoh ;; | |
5824d651 BS |
21 | *) exit 1 ;; |
22 | esac | |
5c2f8d2d BS |
23 | |
24 | exit 0 |