2009-03-28 07:44:27 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
hxtoh()
|
|
|
|
{
|
|
|
|
flag=1
|
2009-03-29 11:06:43 +02:00
|
|
|
while read -r str; do
|
2009-03-28 07:44:27 +01:00
|
|
|
case $str in
|
|
|
|
HXCOMM*)
|
|
|
|
;;
|
2020-03-06 18:17:45 +01:00
|
|
|
SRST*|ERST*) flag=$(($flag^1))
|
2009-03-28 07:44:27 +01:00
|
|
|
;;
|
|
|
|
*)
|
2009-03-29 12:50:43 +02:00
|
|
|
test $flag -eq 1 && printf "%s\n" "$str"
|
2009-03-28 07:44:27 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
"-h") hxtoh ;;
|
|
|
|
*) exit 1 ;;
|
2019-07-15 16:06:04 +02:00
|
|
|
esac < "$2"
|
2009-03-28 09:13:56 +01:00
|
|
|
|
|
|
|
exit 0
|