unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to grep for a string spanning multiple lines?
@ 2022-11-26  6:42 Marcin Borkowski
  2022-11-26  8:27 ` Jean Louis
                   ` (4 more replies)
  0 siblings, 5 replies; 26+ messages in thread
From: Marcin Borkowski @ 2022-11-26  6:42 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi all,

assume I have a file (probably an Org mode one) with some stuff
I archived from the 'net.  (I'm going to start to sue
youtube-sub-extractor.el.)  Here is my problem: assume I remember that
someone in some video said something, and I want to find that part.
However, it turns out that it is split between two (or more) lines.

Traditional `grep' is not helpful in this situation.  Neither is
isearch, nor swiper.  One idea would be to convert the subtitles to one
long line (which is an option), but are there any other ways to search
for a string spanning more than one line (and not knowing which words
are separated by a space and which ones by a newline)?

Both Emacs-y and shell-y tools would be appreciated.

TIA,

-- 
Marcin Borkowski
http://mbork.pl



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2022-12-05 23:06 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-26  6:42 How to grep for a string spanning multiple lines? Marcin Borkowski
2022-11-26  8:27 ` Jean Louis
2022-11-26  8:36 ` tomas
2022-11-26  8:43   ` Jean Louis
2022-11-26  8:59     ` Eli Zaretskii
2022-11-26  9:06       ` Jean Louis
2022-11-27  7:31         ` Michael Heerdegen
2022-11-27  7:44           ` Jean Louis
2022-11-27 12:04             ` Michael Heerdegen
2022-11-27 18:25               ` Jean Louis
2022-11-26 10:57 ` Arthur Miller
2022-11-26 14:55 ` Emanuel Berg
2022-11-27  6:54   ` Marcin Borkowski
2022-11-27  7:26     ` Jean Louis
2022-11-27 13:48     ` Emanuel Berg
2022-11-27 18:10       ` tomas
2022-11-27 19:04         ` Emanuel Berg
2022-11-27 19:46         ` [External] : " Drew Adams
2022-11-28  5:07           ` tomas
2022-11-28  6:17             ` Drew Adams
2022-11-29  2:00               ` Emanuel Berg
2022-11-28 21:05             ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-28 21:12               ` Emanuel Berg
2022-11-28 21:17               ` Emanuel Berg
2022-12-04 21:55 ` Rudolf Adamkovič
2022-12-05 23:06   ` Emanuel Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).