msy () { b="$(mktemp)" e="$(mktemp)" g="$(mktemp)" mbsync -p b 2>/dev/null | tr '\r' '\n' | sed -n '$p' | tee "$b" >/dev/null | mbsync -p e 2>/dev/null | tr '\r' '\n' | sed -n '$p' | tee "$e" >/dev/null | mbsync -p g 2>/dev/null | tr '\r' '\n' | sed -n '$p' | tee "$g" >/dev/null cat "$b" "$e" "$g" rm "$b" "$e" "$g" }