Do not echo the trailing newline

username=`echo -n "bashoneliner"`
click the source code to copy