# README
get
A very simple file/web viewer and fetcher.
get [-f] [-o [filename]] <URL or path>
Examples:
Command | Result |
---|---|
get /etc/passwd | Syntax-highlight /etc/passwd |
get example.com | Syntax-highlight https://example.com |
get -o example.com | Save to get.output.html |
get -o example.com/foo.gif | Save to ./foo.gif |
get -o outp.gif example.com/foo.gif | Save to ./outp.gif |
Features:
- Works on local paths and remote URLs (HTTP/HTTPS only)
- URLs can be specified with or without a protocol
(ex.
example.com
is the same ashttps://example.com
) - Unless
http://
is specified, will always try HTTPS first and fall back to HTTP
- URLs can be specified with or without a protocol
(ex.
- Automatic syntax highlighting if it's outputting to a terminal
-o
without afilename
will guess an appropriate name- Refuses to overwrite files, unless
-f
is passed