From output of find command , list all files containing 'command'

PHOTO EMBED

Thu Sep 15 2022 17:58:38 GMT+0000 (Coordinated Universal Time)

Saved by @cbarsis #bash

find . -type f -name '*.txt' | xargs grep 'command'

// The xargs command, when combined with other commands like find, uses the output of the first command as an argument.
content_copyCOPY

https://linuxhint.com/xargs-find-linux/