I'm planning on doing any importdb on a file that contains both a line feed and a carriage return at the end of each record and that doesnt seem compatible with the importdb command. when I use notepad++ and change the EOL to UNIX which leaves just the line feeds, the importdb works fine. Any ideas on how to remove those Carriage returns easily? is there some param on importdb Im missing?
cnvimp filename 382> outfile
with the cnvimp function, each record in the file could have a different length I suspect right? or is that a number when I open up the file in an editor, i see how many characters the max is?
I also found
tr -d '\r' < infile > outfile
Would either one be a better option, is there anything I could do in ipa to fix it before getting to uni?
tr -d '\r' < $1 > $2
awk 'sub("$", "\r")' $1 > $2