Le 16/02/2022 à 13:43, Greg Wooledge écrivait :
text=$(cat /tmp/foo.txt; printf x)
text=${text%x}

or read -r -d '' text </tmp/foo.txt

witch saves a sub-shell

--
Léa Gris

Reply via email to