¿Cómo mantener la barra invertida al leer un archivo?
Cuando uso "cat test.file", mostrará
printf "This is a test log %d \n, testid";
1
2
Cuando uso el archivo bash,
IFS=""
while read data
do
echo "$data"
done << test.file
Mostrará
printf "This is a test log %d n, testid";
1
2
La "\" se ha ido.
¿Hay alguna forma de mantener la "\" y el espacio al mismo tiempo?