Search character and Insert line break

Solved
Alain0384 -  
 Profile blocked -
Hello,

I have a text file that contains a (very large) line.
I need this file to be composed of several lines starting with 05300 or 04300.
The 05300 and 04300 are data present in the line of the file, and right now I type "Enter" before each 05300 and 04300.
I would like to find a solution to automatically insert line breaks because I have several files to process every day.
Can you help me? I was thinking of a batch file, but I can't find the solution.

Thank you in advance.

Configuration: Mac OS X / Firefox 8.0.1

5 réponses

dam76360 Posted messages 57 Status Membre 2
 
use \n!!
0
Yoda
 
Hello,

Use the Find/Replace functions of your text editor.
Personally, I use Notepad++ and it's a piece of cake.

Find 05300
Replace \n05300

;-)
0
Alain0384
 
Thank you Yoda,
it's already taking me a bit less time (I created a macro) but is there a way to put this in a batch?
I would like the file to be "converted" with one click.
Thank you.
0
Yoda
 
Hello,

I barely know (or almost) batch language.
But ask yourself: Is it worth making a program for this?
There are already quite a few (free) tools available to do this type of manipulation easily and quickly.
A file like yours, with Notepad++ version 5.9.8, can be processed in just a few clicks (without creating a macro).

See you later.
0
Profile blocked
 
More information on the structure of your files is needed if you require programmatic management.
0