4cade/bin/converthelp.sh

5 lines
149 B
Bash
Raw Permalink Normal View History

#!/bin/sh
2021-10-18 01:12:04 +00:00
tr "\*\~\<\>\$\%" "\020\021\010\025\016\017" < "$1" | \
2024-05-25 01:54:43 +00:00
tr -d "\r" | awk '{ printf "%c%s", length, $0 } END { printf "\xFF" }' > "$2"