Re: how to search files by pattern?
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 05/28/04
- Next message: Barry Margolin: "Re: learn"
- Previous message: Barry Margolin: "Re: quick confirmation"
- In reply to: dmitry_kulinich: "Re: how to search files by pattern?"
- Next in thread: Alan Connor: "Re: how to search files by pattern?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 May 2004 17:36:38 -0400
In article <c97uct$iqq$1@mfdebug.isd.dp.ua>,
"dmitry_kulinich" <dkul@isd.dp.ua> wrote:
> >find / -regex "<insert pattern here>" -type f > my_list_of_files_matching
> Great!...but if a pattern have 10 lines?
Grep works a line at a time, printing each line that matches the
pattern. A pattern that contains multiple lines will never match
anything.
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: Barry Margolin: "Re: learn"
- Previous message: Barry Margolin: "Re: quick confirmation"
- In reply to: dmitry_kulinich: "Re: how to search files by pattern?"
- Next in thread: Alan Connor: "Re: how to search files by pattern?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|