Re: well, blew it... sed or perl q again.

2008-12-31 Thread Karl Vogel
On Tue, 30 Dec 2008 11:31:14 -0800, Gary Kline kl...@thought.org said: G The problem is that there are many, _many_ embedded A G HREF=http://whatever Site/A in my hundreds, or thousands, or G files. I only want to delete the http://junkfoo.com lines, _not_ G the other Href links. Use

Re: well, blew it... sed or perl q again.

2008-12-31 Thread Gary Kline
On Wed, Dec 31, 2008 at 03:20:14PM -0500, Karl Vogel wrote: On Tue, 30 Dec 2008 11:31:14 -0800, Gary Kline kl...@thought.org said: G The problem is that there are many, _many_ embedded A G HREF=http://whatever Site/A in my hundreds, or thousands, or G files. I only want to delete the

Re: well, blew it... sed or perl q again.

2008-12-30 Thread Roland Smith
On Tue, Dec 30, 2008 at 11:31:14AM -0800, Gary Kline wrote: The problem is that there are many, _many_ embedded A HREF=http://whatever Site/A in my hundreds, or thousands, or files. I only want to delete the http://junkfoo.com lines, _not_ the other Href links.

Re: well, blew it... sed or perl q again.

2008-12-30 Thread Gary Kline
On Tue, Dec 30, 2008 at 09:16:23PM +0100, Roland Smith wrote: On Tue, Dec 30, 2008 at 11:31:14AM -0800, Gary Kline wrote: The problem is that there are many, _many_ embedded A HREF=http://whatever Site/A in my hundreds, or thousands, or files. I only want to delete the

Re: well, blew it... sed or perl q again.

2008-12-30 Thread David Kelly
On Tue, Dec 30, 2008 at 12:51:31PM -0800, Gary Kline wrote: On Tue, Dec 30, 2008 at 09:16:23PM +0100, Roland Smith wrote: On Tue, Dec 30, 2008 at 11:31:14AM -0800, Gary Kline wrote: The problem is that there are many, _many_ embedded A HREF=http://whatever Site/A in my hundreds, or

Re: well, blew it... sed or perl q again.

2008-12-30 Thread Giorgos Keramidas
On Tue, 30 Dec 2008 12:51:31 -0800, Gary Kline kl...@thought.org wrote: All right, then is this the right syntax. In other words, do I need the double quotes to match the http: string? perl -pi.bak -e 'print unless /m/http:/ || eof; close ARGV if eof' * Close, but not exactly

Re: well, blew it... sed or perl q again.

2008-12-30 Thread Bertram Scharpf
Hi Gary, Am Dienstag, 30. Dez 2008, 11:31:14 -0800 schrieb Gary Kline: The problem is that there are many, _many_ embedded A HREF=http://whatever Site/A in my hundreds, or thousands, or files. I only want to delete the http://junkfoo.com lines, _not_ the other Href links. sed or perl?

Re: well, blew it... sed or perl q again.

2008-12-30 Thread Roland Smith
On Tue, Dec 30, 2008 at 12:51:31PM -0800, Gary Kline wrote: On Tue, Dec 30, 2008 at 09:16:23PM +0100, Roland Smith wrote: On Tue, Dec 30, 2008 at 11:31:14AM -0800, Gary Kline wrote: The problem is that there are many, _many_ embedded A HREF=http://whatever Site/A in my hundreds, or

Re: well, blew it... sed or perl q again.

2008-12-30 Thread Gary Kline
On Tue, Dec 30, 2008 at 11:07:05PM +0200, Giorgos Keramidas wrote: On Tue, 30 Dec 2008 12:51:31 -0800, Gary Kline kl...@thought.org wrote: All right, then is this the right syntax. In other words, do I need the double quotes to match the http: string? perl -pi.bak -e 'print

Re: well, blew it... sed or perl q again.

2008-12-30 Thread Gary Kline
On Tue, Dec 30, 2008 at 10:16:42PM +0100, Roland Smith wrote: On Tue, Dec 30, 2008 at 12:51:31PM -0800, Gary Kline wrote: On Tue, Dec 30, 2008 at 09:16:23PM +0100, Roland Smith wrote: On Tue, Dec 30, 2008 at 11:31:14AM -0800, Gary Kline wrote: The problem is that there are many,

Re: well, blew it... sed or perl q again.

2008-12-30 Thread Gary Kline
On Tue, Dec 30, 2008 at 10:16:33PM +0100, Bertram Scharpf wrote: Hi Gary, Am Dienstag, 30. Dez 2008, 11:31:14 -0800 schrieb Gary Kline: The problem is that there are many, _many_ embedded A HREF=http://whatever Site/A in my hundreds, or thousands, or files. I only want to delete the

Re: well, blew it... sed or perl q again.

2008-12-30 Thread Bertram Scharpf
Hi Gary, Am Dienstag, 30. Dez 2008, 17:48:02 -0800 schrieb Gary Kline: On Tue, Dec 30, 2008 at 10:16:33PM +0100, Bertram Scharpf wrote: Hi Gary, Am Dienstag, 30. Dez 2008, 11:31:14 -0800 schrieb Gary Kline: The problem is that there are many, _many_ embedded A HREF=http://whatever