Você pode fazer:
LC_ALL=C tr 'perl -pe 'BEGIN{$/=} $_ = pack("C", unpack("C", $_) ^ 0xff)' < file.in > file.out
-7' '765432107654321076543210765432107654321076543210765432107654321076543210765432107654321076543210765432107654321076543210765432107654321076543210765432107654321076543210765432107654321076543210LC_ALL=C tr 'perl -pe 'BEGIN{$/=} $_ = pack("C", unpack("C", $_) ^ 0xff)' < file.in > file.out
-7' '765432107654321076543210765432107654321076543210765432107654321076543210765432107654321076543210765432107654321076543210765432107654321076543210765432107654321076543210765432107654321076543210%pre%' < file.in > file.out
' < file.in > file.out
Ou:
%pre%