Skip to content

Commit 18cf5e9

Browse files
authored
sql2wordlist.sh: fix mode
instead of trying to trim, avoid generating quotes (words with punctuation are removed)
1 parent 545fcdf commit 18cf5e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql2wordlist.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
2-
sqlite3 -csv -readonly -noheader ${1:-lexdb.sqlite} <<EOF | grep -v -e '^[[:punct:]]' -e '^[[:digit:][:punct:]]*$' > ${2:-lexdb_${3:-100}.words}
3-
select trim(u,'"') from csv where f > ${3:-100} and p != "\$(" and p != "\$," and p != "\$." and p != "FM.xy" and p != "CARD" and p != "XY";
2+
sqlite3 -column -readonly -noheader ${1:-lexdb.sqlite} <<EOF | grep -v -e '^[[:punct:]]' -e '^[[:digit:][:punct:]]*$' > ${2:-lexdb_${3:-100}.words}
3+
select u from csv where f > ${3:-100} and p != "\$(" and p != "\$," and p != "\$." and p != "FM.xy" and p != "CARD" and p != "XY";
44
EOF

0 commit comments

Comments
 (0)