Use printf rather than echo -n -e in bash example.