Last active
June 9, 2022 10:55
-
-
Save thingsiplay/dfdc68de53c0421a2e8b51539cf6a169 to your computer and use it in GitHub Desktop.
Cleaner output font name output when searching for font
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
fc-list \ | |
| grep -ioE ": [^:]*$1[^:]+:" \ | |
| sed -E 's/(^: |:)//g' \ | |
| tr , \\n \ | |
| sort \ | |
| uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment