I have a critical problem where during the ftp transfer one of my files is being assigned the \n character at then end of each segment. If you were to vi the file you cannot see it but when you do the od -xc < filename> I can see that the \n is at the end of each segment.
What command during the ftp session can I use so it does not pass \n character along and or what command should I use to remove this prior to the ftp session. I have tried the sed 's/\012//'g or sed 's/012//'g on the file and it is not removing it . Do I have the right syntax??
ftp -inv <<EOF > $FLOG_OUT
open $HOST
user $ID $PSW
prompt
lcd $out
mput [A-Z0-9]*
bye
EOF