Solved

Windows Command-Line: Find and Replace Character

Posted on 2014-01-29
1
482 Views
Last Modified: 2014-01-29
Hi,

I have large pipe-delimited text files with line-feed (LF) terminators (from Linux platforms).
I want to replace this character to regular line terminator such as '\n', because Oracle doesn't take this terminator when I try to import these text files.
Is there any command to find & replace this character in DOS window? and is there any way to identify the last character of the line (terminator) so that I can just replace that?
I can't use regular notepad or any text editor to do this, because i have many files with the same problem that I need to fix quickly.

Any help would be greatly appreciated.

Thank you.
0
Comment
Question by:iamnamja
1 Comment
 
LVL 12

Accepted Solution

by:
ktaczala earned 500 total points
ID: 39818780
search for a hex editor utility.
here's one link
http://mh-nexus.de/en/hxd/

you should be able to search & Replace 0x0a (LF) with 0x0D (CR)
hopefully your data lines do not have any 0x0a characters in it.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Plain Text Editor for iPad 6 105
ASP/VB email question 4 58
Programming Codes 2 39
C# Windows Form Navigation - Total Beginner 9 34
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question