Hi,
I am doing a conversion from Sale Force to Oracle on a Windows platform. I saw where I can get a windows version of awk to run on windows from Sourceforge. I do not know anything about awk other than it is a Unix command that does string manipulation.
Background:
The Accounts (customer name and address) table that I was given has CRLF and LF buried in the data. CRLF is also used to terminate the record in Windows. Here are a couple of examples of my data:
20,"10","1449 Jupiter Park Dr., <LF>
Unit #19","","Jupiter","FL","33458"<CRLF>
49,"10","420 E. Aviation Dr., <CRLF>
Suite 110","","Tucson","AZ","85714"<CRLF>
The data should be:
20,"10","1449 Jupiter Park Dr.,Unit #19","","Jupiter","FL","33458"<CRLF>
49,"10","420 E. Aviation Dr.,Suite 110","","Tucson","AZ","85714"<CRLF>
Questions:
Given that I have NO knowledge of awk, (I should be able to install it and get it running):
1. Can awk remove the CRLF and LF that are imbedded in the data but not remove the CRLF that terminate the record? The CRLF and LF that need to be removed will be within quotes, if that helps.
2. If awk can do that above, can you please supply the awk command to do it. Please remember that I have not used awk before.
Thanks,
Dennis
I am doing a conversion from Sale Force to Oracle on a Windows platform. I saw where I can get a windows version of awk to run on windows from Sourceforge. I do not know anything about awk other than it is a Unix command that does string manipulation.
Background:
The Accounts (customer name and address) table that I was given has CRLF and LF buried in the data. CRLF is also used to terminate the record in Windows. Here are a couple of examples of my data:
20,"10","1449 Jupiter Park Dr., <LF>
Unit #19","","Jupiter","FL","33458"<CRLF>
49,"10","420 E. Aviation Dr., <CRLF>
Suite 110","","Tucson","AZ","85714"<CRLF>
The data should be:
20,"10","1449 Jupiter Park Dr.,Unit #19","","Jupiter","FL","33458"<CRLF>
49,"10","420 E. Aviation Dr.,Suite 110","","Tucson","AZ","85714"<CRLF>
Questions:
Given that I have NO knowledge of awk, (I should be able to install it and get it running):
1. Can awk remove the CRLF and LF that are imbedded in the data but not remove the CRLF that terminate the record? The CRLF and LF that need to be removed will be within quotes, if that helps.
2. If awk can do that above, can you please supply the awk command to do it. Please remember that I have not used awk before.
Thanks,
Dennis