Resolving a mysterious problem with find

The Endeavour 2024-11-12

Summary:

Suppose you want to write a shell script searches the current directory for files that have a keyword in the name of the file or in its contents. Here’s a first attempt. find . -name '*.py' -type f -print0 | grep -i "$1" find . -name '*.py' -type f -print0 | xargs -0 grep -il […]

The post Resolving a mysterious problem with find first appeared on John D. Cook.

Link:

https://www.johndcook.com/blog/2024/11/12/find-file-names/

From feeds:

Statistics and Visualization » The Endeavour

Tags:

command

Authors:

John

Date tagged:

11/12/2024, 12:12

Date published:

11/12/2024, 09:04