GNU bug report logs - #49698
Search for URL containing certain word

Previous Next

Package: grep;

Reported by: Julius Hamilton <julkhami <at> gmail.com>

Date: Thu, 22 Jul 2021 19:41:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Julius Hamilton <julkhami <at> gmail.com>
Subject: bug#49698: closed (Re: bug#49698: Search for URL containing
 certain word)
Date: Fri, 23 Jul 2021 15:25:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#49698: Search for URL containing certain word

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 49698 <at> debbugs.gnu.org.

-- 
49698: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49698
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Julius Hamilton <julkhami <at> gmail.com>
Cc: 49698-done <at> debbugs.gnu.org
Subject: Re: bug#49698: Search for URL containing certain word
Date: Fri, 23 Jul 2021 08:24:04 -0700
Not a bug, so closing the bug report.

[Message part 3 (message/rfc822, inline)]
From: Julius Hamilton <julkhami <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: Search for URL containing certain word
Date: Thu, 22 Jul 2021 21:08:32 +0200
[Message part 4 (text/plain, inline)]
Hey,

I'm new to grep so I'd love any tips on how to search for text in the
following way.

I'd like to find a certain URL that is somewhere in a large text file. I
would like to find it by specifying "a URL which contains word X somewhere
within it", or even "a URL which is located within 3 lines of the word X".

I'd like to copy that URL and then write it to the top of the file.

I am considering doing this with Vim search commands, yet the underlying
regex would be the same, so I think this would be a good place to ask.

How would you do this with grep? Or a similar tool?

Thanks very much,
Julius
[Message part 5 (text/html, inline)]

This bug report was last modified 3 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.