-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.go
42 lines (26 loc) · 908 Bytes
/
help.go
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
package main
import "fmt"
func helpMe() {
textToPrint := `
* * * HELP * * *
Script to compare unique data from two text files, named A and B
- unique data includes emails, sha256, urls or dni
- text files include csv, txt, sql or html
Use the options as in this example:
./ecompare -data=emails -A=fileA.csv -B=fileB.csv
This script always creates 3 files in the current folder with the results.
1 - in-a-but-not-in-b.txt
2 - in-b-but-not-in-a.txt
3 - in-both-a-and-b.txt
Each time the script runs it overwrites this 3 files.
---------------------
Comand line options:
-help Display this help
-data=emails What to compare in the files. It can be "emails", "sha256", "urls" or "dni". By default it compares emails.
-A=fileA.csv File A name
-B=fileB.csv File B name
-debug=true Debug the script
-trash To delete the 3 files created by ecompare
`
fmt.Printf(textToPrint)
}