You are here: PSPad forum > English discussion forum > Re: Deleting lines with string

Re: Deleting lines with string

#1 Deleting lines with string

Posted by: ssissons | Date: 2017-03-02 15:33 | IP: IP Logged

Is there a way to delete all lines in file, that contain a particular string? Without doing a Find w/List, and going through them manually? (It takes a lot of tedious effort to do this with large files.)

Options: Reply | Quote | Up ^


#2 Re: Deleting lines with string

Posted by: vbr | Date: 2017-03-02 17:19 | IP: IP Logged

ssissons:
Is there a way to delete all lines in file, that contain a particular string? Without doing a Find w/List, and going through them manually? (It takes a lot of tedious effort to do this with large files.)

Hi,
you can use the [Copy] function of the Find dialog;
check [x] Copy non-matching
insert the specific string into the search field and press [Copy].
You effectively get a copy of the file excluding the lines containing the search word.
hth,
vbr

Options: Reply | Quote | Up ^


#3 Re: Deleting lines with string

Posted by: ssissons | Date: 2017-03-02 17:46 | IP: IP Logged

That worked great! Thank you very much!

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR