[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Searching inside files in a script
From: |
Dennis Williamson |
Subject: |
Re: Searching inside files in a script |
Date: |
Tue, 12 Oct 2021 13:22:51 -0500 |
On Tue, Oct 12, 2021, 1:14 PM Khan Smith <khansmith@mail.com> wrote:
>
> Sent: Tuesday, October 12, 2021 at 3:46 PM
> From: "Alex fxmbsw7 Ratchev" <fxmbsw7@gmail.com>
> To: "Khan Smith" <khansmith@mail.com>
> Cc: "help-bash" <help-bash@gnu.org>
> Subject: Re: Searching inside files in a script
> grep -r 'pattern' dir
> possibly -E or -P or -F
> -r for recursive into dirs
>
>
>
> I am trying to time the execution of grep using
>
> tim=${EPOCHREALTIME//[![:digit:]]/.}
>
> But tim is not returning anything
>
>
> On Tue, Oct 12, 2021, 17:38 Khan Smith <[1]khansmith@mail.com> wrote:
>
> I am getting a number of error messages related to functionality
> I
> source to. I would like to have a function I can run to search a
> text
> pattern on specific directories or files. What can I do?
> If I select a directory, I want to search inside the files in
> that
> directory.
>
> References
>
> 1. mailto:khansmith@mail.com
Instead of doing it yourself just do
time grep...
>
>
- Searching inside files in a script, Khan Smith, 2021/10/12
- Re: Searching inside files in a script, Alex fxmbsw7 Ratchev, 2021/10/12
- Searching inside files in a script, Khan Smith, 2021/10/12
- Re: Searching inside files in a script,
Dennis Williamson <=
- Searching inside files in a script, Khan Smith, 2021/10/12
- Re: Searching inside files in a script, Dennis Williamson, 2021/10/12
- Searching inside files in a script, Khan Smith, 2021/10/12
- Re: Searching inside files in a script, Dennis Williamson, 2021/10/12
- Searching inside files in a script, Khan Smith, 2021/10/12
- Re: Searching inside files in a script, Tapani Tarvainen, 2021/10/12
- Searching inside files in a script, Khan Smith, 2021/10/12
- Searching inside files in a script, Khan Smith, 2021/10/12
- Re: Searching inside files in a script, Alex fxmbsw7 Ratchev, 2021/10/12
- Searching inside files in a script, Khan Smith, 2021/10/12