Hi,
I've a file having some regular expressions.
e.g. cat regex.txt
[\t\n]
abc.*pqr
If I write a small bash script as below,
while read line
do
echo -E "$line"
done < regex.txt
even with -E switch passed to echo the output is
[tn]
abc.*pqr
So the backslashes have vanished in the first regular expression.
Is there a way to retain all backslashed escape sequences
while reading a file using the while loop ?
Thanks,
Mahendra