configuration/local/bin/mreflow
2021-07-11 12:44:19 +02:00

26 lines
507 B
Bash
Executable File

#!/bin/sh
# Do not modify headers
while IFS='\n' read line && [ -n "$line" ]; do
printf "%s\n" "$line"
done
printf "\n"
IFS='\n' read line || exit 0
while true; do
if [ "${line% wrote:}" != "$line" -o "${line%,}" != "$line" ]; then
printf "%s\n" "$line"
IFS='\n' read line || exit 0
fi
while [ -n "$line" ]; do
printf "%s\n" "$line"
IFS='\n' read line || exit 0
done | par $* | sed 's/$/ /;$s/ $//'
IFS='\n' read line || exit 0
if [ -z "$line" ]; then
exit 0
else
printf "\n"
fi
done