add fontgrep script
This commit is contained in:
parent
874852ca07
commit
d077f4bfd9
1 changed files with 12 additions and 0 deletions
12
scripts/fontgrep
Executable file
12
scripts/fontgrep
Executable 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 $@
|
||||||
Loading…
Add table
Add a link
Reference in a new issue