Skip to content

Instantly share code, notes, and snippets.

@lincerely
Last active February 3, 2023 04:55
Show Gist options
  • Save lincerely/5b7a39802df323cadda2bdf3f3f15628 to your computer and use it in GitHub Desktop.
Save lincerely/5b7a39802df323cadda2bdf3f3f15628 to your computer and use it in GitHub Desktop.
filter file by command output
# example: find free font
find . -print0 | xargs -P`nproc` -0 -I _ sh -c "fontanalz \"_\" 2>/dev/null | grep -q -E 'SIL|free|Free' && echo \"_\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment