Quick Note: When you’re bash scripting and you need to pipe some text into some process, you can use echo
with the -n
flag to suppress the echo
‘s complimentary endline , or you can use printf
, but using printf
is more portable. Some machines implement echo
differently and don’t support the -n
flag. I found this advice and a longer explanation at this message board.