exit 1
fi
-echo "platform est $platform"
+platform=$(uname)
case $platform in
Linux) libreoffice="libreoffice" ;;
CYGWIN*) libreoffice="soffice" ;;
- *) print "Unkown platform $platform"
+ *) echo "Unkown platform $platform"
exit 1;;
esac
shift
continue
fi
-
+
+ sed -i 's/\r$//' "${1%.docx}.txt"
cat "${1%.docx}.txt" | awk '/^-- ASN1START$/,/^-- ASN1STOP$/' | grep -Evxe '-- ASN1ST(ART|OP)' | grep -v '^--' | awk 'NF || p; { p = NF }' p=0 > "${1%.docx}.asn"
if [[ -e "${1%.docx}.asn" ]] ; then