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

Main Area and Open Discussion > General Software Discussion

Delete lines starting with a string in a txt file predefined

<< < (3/5) > >>

Contro:
I have found something may help. And perhaps a macro with pspad is enough

:

Home
Delete Delete Delete
Down
Home
Delete Delete Delete
Down
Home
Delete Delete Delete


or something similar may serve. But I don't remember how. But i create a macro in pspad yesterday. Damn memory !!!!!!!!!!!!!!!!!
 >:(

Contro:
 ;D
done .
The code with pspad is something like this

ecDeleteChar
ecDeleteChar
ecDeleteChar
ecDeleteChar
ecDeleteChar
ecDeleteChar
ecDeleteChar
ecDeleteChar
ecDeleteChar
ecDeleteChar
ecDeleteChar
ecDeleteChar
ecDeleteChar
ecDown

Beginning from the line we want to remove the first 13 characters.
"As usual" is enough to repeat the macro to remove the second line
and so on.
 :-*

lanux128:
throwing my hat into DoCo's favourite past-time. :-\

@Contro: since you mentioned PSPad, there is a way to do what you wanted (or at least what i *think* you wanted) within PSPad.

1. Open the text file in PSPad.
2. Press Control + F to open the 'Find' dialog.
3. Type the "predefined" string.
4. Click "Copy non-matching" (see attached image).
5. Click the "Copy" button.
6. PSPad will open a *new* text file without the "predefined" string that you didn't want.
7. Now you just have to save it.

Attached image: PSPad Find DialogSpoiler

Contro:
throwing my hat into DoCo's favourite past-time. :-\

@Contro: since you mentioned PSPad, there is a way to do what you wanted (or at least what i *think* you wanted) within PSPad.

1. Open the text file in PSPad.
2. Press Control + F to open the 'Find' dialog.
3. Type the "predefined" string.
4. Click "Copy non-matching" (see attached image).
5. Click the "Copy" button.
6. PSPad will open a *new* text file without the "predefined" string that you didn't want.
7. Now you just have to save it.

Attached image: PSPad Find Dialog
-lanux128 (January 26, 2014, 11:59 PM)
--- End quote ---

Yes. But seems don't delete the entire line that contains the string, or mantain if is the case.
 :-*

lanux128:
Yes. But seems don't delete the entire line that contains the string, or mantain if is the case.
 :-*
-Contro (January 27, 2014, 06:52 AM)
--- End quote ---
can you post a screenshot of these lines? maybe that could give a clue as to why they are not being deleted.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version