I'm having a issue, I need to copy the file contents and remove a couple of lines if they match the output from a previous command. But so far, I'm having an issue in maintaining the file lines exactly the same.I'm putting the simple part of the script as the if to omit the copy are not part of the problem as this happens with unaffected lines.For the example: In the original file I have the followingTesting,      resuming textWhen run the script the fields become:Testing, resuming textI'm doing the following:#!/usr/bin/bashrm /tmp/dest_filewhile read linedo   echo $line >> /tmp/dest_filedone < $1The problem I have with this is that the files will become different due to the tab formatted fields.
Read a file and copy to another file
bash;solaris;quoting
Quote your variable:echo $line >> /tmp/dest_file