ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

[Solved] Manipulate lines in a txt file

<< < (9/9)

Contro:
Perhaps an example would better explain the question?

Input text:

--- ---Phrase 1. Phrase 2. Phrase 3.
Phrase 4.
Phrase 5. Phrase 6. Phrase 7.
Output Option 1 (Phrase 4 remains since it is the only Phrase in the line):

--- ---Phrase 2.
Phrase 3.
Phrase 4.
Phrase 6.
Phrase 7.
Output Option 2 (Phrase 4 is removed because it is the first Phrase in the line):

--- ---Phrase 2.
Phrase 3.
Phrase 6.
Phrase 7.
Which is the preferred output option, 1 or 2?
-4wd (September 07, 2017, 09:26 PM)
--- End quote ---

The phrase 4 must be removed.
I have assumed that the input text is the result of the first process of the phrases.
So I have control of that phrase and I don't need that phrase anymore.

When a line have only one phrase we can remove that line because I have processed that phrase previously.

Best Regards


Ath:
Aha, so then my solution using notepad++ in post #18 or skrommel's ahk-script in post #28 should both work for you. No changes needed. Thanks for clearing that up.

Moderators, please move this thread to the 'resolved' section.

Navigation

[0] Message Index

[*] Previous page

Go to full version