Skip to content

Read

Don't act escape sequence

Use -r

$ cat 1.txt 
domain\user

$ while read -r U; do echo $U; done < 1.txt
domain\user

$ while read U; do echo $U; done < 1.txt
domainuser