Below is a link to an article that I wrote which was recently published by SQL Server Central (http://www.sqlservercentral.com/) on using SED to deal with large files that need to be edited or inspected prior to being imported using DTS.
http://www.sqlservercentral.com/columnists/pward/sedandthebigbadunixfile.asp