add fontgrep script

This commit is contained in:
do butterflies cry? 2025-08-31 15:00:14 +10:00
parent be51217aae
commit 7646782b46

12
scripts/fontgrep Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
function fontgrep {
fc-list \
| grep $@ \
| awk '{$1=""; print substr($0, 2, length($0)-1) }' \
| grep -oE '^\s*[^,]+' \
| sort \
| uniq
}
fontgrep $@