[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Searching inside files in a script
From: |
Khan Smith |
Subject: |
Searching inside files in a script |
Date: |
Tue, 12 Oct 2021 20:13:41 +0200 |
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
- 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 <=
- 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, 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