There is no way to have it working.
One way is to use a temporary file like:
TMP_FILE=`mktemp /tmp/config.XXXXXXXXXX`sed -e "s/abc/def/" some/file > $TMP_FILEmv $TMP_FILE some/file
This works on both
There is no way to have it working.
One way is to use a temporary file like:
TMP_FILE=`mktemp /tmp/config.XXXXXXXXXX`sed -e "s/abc/def/" some/file > $TMP_FILEmv $TMP_FILE some/file
This works on both