diff options
author | haturatu <taro@eyes4you.org> | 2024-12-04 17:10:51 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2024-12-04 17:10:51 +0900 |
commit | c6deec6e6452b591ecb729bfd5b4ec0a1822c640 (patch) | |
tree | a2ebf18997d18a13cc779693a0ceae1f99e2a00b /README.md |
first commit
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..c712269 --- /dev/null +++ b/README.md @@ -0,0 +1,42 @@ +# 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/" +``` + +### 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 {} +``` |