summaryrefslogtreecommitdiff
path: root/README.md
blob: 07fc6414bfe0c614aca425a52f6652681ed8bf72 (plain)
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
46
47
48
49
50
# ght
go-http-title  

## Build
Please check if the Go path is running.
```bash
which go
```
  
And then compile.
```bash
go build -o ght main.go
```
Move the executable binary to `/usr/local/bin` to work with CLI.
```bash
sudo mv ght /usr/local/bin/
sudo chown root:root /usr/local/bin/ght
which ght
```

## Usage
URL in `$1`.
```bash
$ ght
Usage: ght [options] <URL>
Options:
  -m    Output the URL in Markdown format
```
exec
```bash
$ ght "https://google.com/"
Google
```
Done!

### for example
If you have a file called `urls` with URLs listed.
```bash:urls
https://www.google.com/
https://soulminingrig.com/
https://soulminingrig.com/ab/
```
Single proccessing
```bash
cat urls | while read -r url ; do ght $url ; done
```
Parallel processing with `xargs`
```bash
cat urls | xargs -P 4 -I {} ght {}
```