does not work
echo ${REV%%\\n*}
does work
echo ${REV%% *}
After reading trough http://tldp.org/LDP/abs/html/p
More portably (ie, POSIX):
var="yo yo" newline=" " echo "${var#*"$newline"}"