Search character and Insert line break
Solved
Alain0384
-
Profile blocked -
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
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
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
;-)
Use the Find/Replace functions of your text editor.
Personally, I use Notepad++ and it's a piece of cake.
Find 05300
Replace \n05300
;-)
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.
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.
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.
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.