#!/bin/sh if [ "$2" ]; then cat "$1" | tr ';' '@' > "$2" elif [ "$1" ]; then cat "$1" | tr ';' '@' else tr ';' '@' fi