go-http-title
Please check if the Go path is running.
which go
And then compile.
go build -o ght main.go
Move the executable binary to /usr/local/bin
to work with CLI.
sudo mv ght /usr/local/bin/
sudo chown root:root /usr/local/bin/ght
which ght
URL in $1
.
$ ght
Usage: ght [options] <URL>
Options:
-m Output the URL in Markdown format
exec
$ ght "https://google.com/"
Google
Done!
If you have a file called urls
with URLs listed.
https://www.google.com/
https://soulminingrig.com/
https://soulminingrig.com/ab/
Single proccessing
cat urls | while read -r url ; do ght $url ; done
Parallel processing with xargs
cat urls | xargs -P 4 -I {} ght {}