xget

command module
v0.0.0-...-0df80cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 9 Imported by: 0

README

xget

Have you ever found a file on your Linux filesystem and wondered where it came from? xget is a simple download tool, that will download a file from a URL and save it to current directory. It will furthermore add an extended file attribute user.url to the file, containing the URL from which the file was downloaded.

For good measure the sha1sum and sha256sum of the file is also added as extended file attributes.

Installation

$ go install github.com/abrander/xget@latest

Usage

# Downlad a file.
$ xget https://example.com/somefile.txt

# Show all attributes for the downloaded file.
$ xattr -l somefile.txt

# Show the URL attribute.
$ xattr -p user.url somefile.txt

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL