Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abrander/xget
Simple wget like utility that writes URL to extended file attribute
https://github.com/abrander/xget
Last synced: about 1 month ago
JSON representation
Simple wget like utility that writes URL to extended file attribute
- Host: GitHub
- URL: https://github.com/abrander/xget
- Owner: abrander
- License: mit
- Created: 2023-09-24T10:23:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-21T18:53:00.000Z (9 months ago)
- Last Synced: 2024-06-21T01:54:01.540Z (7 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```bash
$ go install github.com/abrander/xget@latest
```## Usage
```bash
# 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
```