Find¤ Find an action¤ find / -name "runlog-2021*.log" -printf '%h/%f\n' find . -name "runlog.2021*.trace" -type f -exec gzip -f {} \; find /opt/data/detached -name ignored_* | xargs -exec rm -rf {} Search text in all files in a directory¤ grep -R "text" .