You can use wc –files0-from=F option to read input from the files specified by NUL-terminated names in file F; If F is – then read names from standard input.
Example:
1 2 3 4 |
## wc --files0-from=FILE option ## print wc for all files under /etc with .conf extension sudo find /etc -name '*.conf' -print0 | wc --files0-from=- |