P
P
photosho2021-09-23 11:26:29
linux
photosho, 2021-09-23 11:26:29

Command to search for files with maximum nesting level?

Tell me how to find files on the Linux command line:

1. By content (a specific line).
2. Only with a certain extension.
3. With an indication of the maximum nesting level from the source directory.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xibir, 2021-09-23
@photosho

find /Path -maxdepth 3 -type f -name \*.txt | xargs grep SearchString

M
meDveD_spb, 2021-09-23
@meDveD_spb

I advise you to use fd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question