summaryrefslogtreecommitdiff
path: root/domain-search
blob: 840cfe822e73fee8da687eacdcdf9e0c3424bee9 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p hunspellDicts.en-us
#
# for some reason, this env var is available?
#
dict=$buildInputs/share/hunspell/en_US.dic
#
# grep the dictionary, strip weird '/SMY', then pass to my domain script
#
grep $1 $dict  | sed "s|\/.*$||g" | xargs -I % domain %