summaryrefslogtreecommitdiff
path: root/README.md
blob: 6237423d0e3efd741d5b161a4327925abcbe8d61 (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
# ght
go-http-get  

## 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 "https://google.com/"
```
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 {}
```