#!/bin/bash # last-modified: 2021-03-20 20:38:27+01:00 # requires https://github.com/soimort/translate-shell # Arch Linux: yay -S translate-shell clear INPUT="$1" cat $INPUT | sed -e '1,/^\r\{0,1\}$/d' | sed '/^>/d' > ~/.neomutt/tmp/tr.txt trans :en -no-browser file:///home/philip/.neomutt/tmp/tr.txt exit 0