Files
qemu/scripts/hxtool
T

25 lines
342 B
Bash
Raw Normal View History

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