Page 1 of 1

grep for lines

Posted: Mon Feb 25, 2002 7:53 pm
by James B Fredrickson
I would like to implement a Unix style grep command in textpad. Essentially, that would mean bookmarking the lines I want to keep and then deleting all UNMARKED lines. (The standard command deletes marked lines.)

Has anyone already done this? Care to eliminate the need to re-invent the wheel?

Thanks,
Jim Fredrickson

Re: grep for lines

Posted: Mon Feb 25, 2002 9:58 pm
by Ed
Assuming the edits are within a single file...
Find the required string,
Mark All
Search/Invert All Bookmarks
Edit/Cut Other/Bookmarked Lines