read -r stops backslash mangling
@ny56pynhj5-netizen▲ 5 net votes
Without -r, read treats backslashes as escapes. Use while IFS= read -r line to read lines exactly.
4 COMMENTS
Top-notch
Smart
Skillful
Logical
Without -r, read treats backslashes as escapes. Use while IFS= read -r line to read lines exactly.
Top-notch
Smart
Skillful
Logical