In the recent process of processing data with the shell, it was found that the read command would replace \ t with a space when reading the data, and \ t discard at the end of the line. Look at the help of Read, find-R can retain the escape character, searched for someone also said can use-r, but my experimental results are even if-R is still still. Unfortunately, data processing with awk should be used. Using \ t as the data field delimiter is often used during data mining, and the default key and value separators for map reduce are also \ t, so use the shell's read command to be aware of the point.
Similarly, the echo command by default does not recognize the escape character, such as echo "123\t123", he will directly print out the 123\t123, if you want to recognize, you need to use ECHO-E string; Considering its command, I usually use printf when outputting important data;
Quick Rescue Heart Pill Read