Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalild Characters

Status
Not open for further replies.

yatesm

MIS
Apr 8, 2002
2
GB
Hi Guys,

I need to load a flat file and the last character on each line is invalid - it just shows up as a space on Solaris, I think it must be an end of line command from windows or some thing.

I've tried using sed to create a new file without the char, but it brings it also.

Any ideas how to get rid of the bloody thing ? without opening up the file as it is big.

Thanks a lot
Mike
 
Try running the file through dos2unix:

dos2unix <original file> <new file>

You can then rename <new file> to the original if need be. Good luck.
 
That worked a treat, so easy when you know how......

Thanks for sharing
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top