Car Credit | Problem Mortgage | Modded Xbox | Personal Loans | Loans
Word/Text file > deleting extra carriage returns [Archive] - PCMech Forums

PDA

View Full Version : Word/Text file > deleting extra carriage returns


sdkfz
10-17-2002, 03:08 PM
I need to download a file from
http://www.ustreas.gov/offices/enforcement/ofac/sdn/index.html
and be able to do a cross check with a database in MS Access. The US Dept of the Treasury in it's infinite wisdom has included 'hard returns' into the text file inside of a 'record'.

If I try to import the file (Access Excel etc) of course the 'returns' make the next line a new record, which it is not! I'd do it manually even though it is 247 pages long, but I will need to do it repeatedly (every time the list is updated) and I am not going there. There are many different download options, all result in the same file!

As a fix I tried to 'copy' the hard return into the search and replace function in Word, but I can not get it to 'take' on the paste. Anyone have a hint on how to do this? or another solution? I have used a tool from www.beside.com to work with files with this issue BUT the data elements were fixed lengths, these sure aren't.

FYI, this is the list of people, groups, companies that Americans are not supposed to have any business dealings with. It is intersting to look at ONCE, unfortunateley I will be looking at it many times

Thanks

sdkfz
10-18-2002, 09:02 PM
Guess I stumpt everyone,

oh well, it was worth a try

glc
10-18-2002, 09:28 PM
This is using Word 97:

Try this - highlight the entire document (this may not be necessary - try it both ways) - then open Tools, Options, View - in "nonprinting characters" check off "paragraph marks". Then in Edit, Replace, click Special and choose "paragraph marks" - and leave the replace with blank or put a space in, whatever you want.

I noticed that a hard return does put a paragraph mark in when I use it, having this view option enabled.

aym
10-19-2002, 04:03 PM
If you mean that you want to get rid of the carriage return chars, then I found a way to do it:
Download an app called EditPlus, go to Tools > Preferences > Files > and select UNIX fromat, then create a new text file, copy your file contents, and save it.
http://www.editplus.com

sdkfz
10-21-2002, 09:53 AM
Thank you both for your help, GLC's worked for me best mainly because I did not have the rights to conduct the download and install.

Now to figure out a way to conduct a cross check of this list automatically instead of manually, the AKA's are going to kill me.