-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfdic.1
More file actions
45 lines (29 loc) · 1.32 KB
/
fdic.1
File metadata and controls
45 lines (29 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.TH fdic 1 " " "fdic-VERSION"
.SH NAME
fdic - dictionary filter for stdin
.SH SYNOPSIS
fdic [wordlist]
.SH DESCRIPTION
FDIC will read STDIN and output newline delimited words to stdout if they are contained in a dictionary file.
Alternatively, the dictionary can be specified on the command line as a space separated wordlist.
Basic punctuation should be filtered from the input if they are not in the dictionary since fdic does not assume any punctuation removed.
.SH EXAMPLES
Punctuation removal from the input can be achieved by piping to tr as in
.I tr -d [:punct:]
.
Unprintable characters can be converted to newlines by piping to
.I tr -s -c [:print:] \(dq\en\(dq
Spaces can be converted to newlines with
.I tr -s \(dq \(dq \(dq\en\(dq
Using tr, we can see how often the computer things about pets with:
cat /dev/urandom |tr -s -c [:alpha:] "\n" |tr [:upper:] [:lower:] |fdic bunny dog cat
Or, with a dicitionary configured, we can omit the wordlist from the command line:
cat /dev/urandom |tr -s -c [:alpha:] "\n" |tr [:upper:] [:lower:] |fdic
.SH FILES
~/.config/fdic/dict.txt or ~/snap/fdic/common/dict.txt should contain a list of valid words separated by newlines.
.SH BUGS
https://github.com/tejohnso/dictionary-filter/issues
.SH AUTHOR
https://github.com/tejohnso
.SH SEE ALSO
tr(1) aspell(1) cut(1) stdin(3)