new line in bash parameter substitution ${REV%%\n*}

前端 未结 3 872
忘掉有多难
忘掉有多难 2021-02-08 22:40

does not work

echo ${REV%%\\n*}

does work

echo ${REV%%
*}

After reading trough http://tldp.org/LDP/abs/html/p

3条回答
提交回复
热议问题