grep for lines

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
James B Fredrickson

grep for lines

Post 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
Ed

Re: grep for lines

Post 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
Post Reply