$ find . -type f -name "*.FILE_TYPE.dart" -exec printf x \; | wc -c
Where FILE_TYPE
is the generated file type, such as g
or freezed
.
$ find . -type f -name "*.FILE_TYPE.dart" -not -path "*/test/*" -exec printf x \; | wc -c
$ find . -name "*.FILE_TYPE.dart" -type f | pbcopy
Where FILE_TYPE
is the generated file type, such as g
or freezed
.
$ find . -name "*.FILE_TYPE.dart" -not -path "*/test/*" -type f | pbcopy
- https://askubuntu.com/a/454568
- https://askubuntu.com/questions/420981/how-do-i-save-terminal-output-to-a-file
- https://math2001.github.io/article/bashs-find-command/
- https://stackoverflow.com/questions/4023703/copy-shell-script-output-to-clipboard
- https://superuser.com/questions/397307/how-to-ignore-certain-filenames-using-find