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.