Portable script for both GNU systems and OSX:
if [[ $(uname) == "Darwin" ]]; then SP=" " # Needed for portability with sedfised -i${SP}'' -e "s/foo/bar/g" -e "s/ping/pong/g" foobar.txt
Portable script for both GNU systems and OSX:
if [[ $(uname) == "Darwin" ]]; then SP=" " # Needed for portability with sedfised -i${SP}'' -e "s/foo/bar/g" -e "s/ping/pong/g" foobar.txt