#!/bin/bash echo -e "><.>\u200B<.>​<" | perl -pe "s,><,--,g" # --.>​<.>​< echo -e "><.>\u200B<.>​<" | perl -pe "s,>\x{200B}<,--,g" # ><.>​<.>​<