| DOG(1) | Linux User Manuals | DOG(1) |
dog - better than cat
dog [-V|--version] [-h|--help] [-] [-f|--format html/text/json/yaml/xml] [-U|--user username] [-P|--password password] [-w|--width cols] [-A|--show-all] [-B|--no-blanks] [-E|--show-ends] [-t] [-T|--show-tabs] [-s|--squeeze-blank] [-n|--number] [-b|--number-non-blank] [-v|--show-nonprinting] [-e] [-u] [-g|--user-agent] user-agent [-H|--header] header [--hide-nonprinting] [--no-header] [--show-all] [--upper] [--lower] [--links] [--images] [--hex] file | URL | - ...
dog is a reimplementation of dog by Jason Cohen and Jacob Leverich, because theirs has gone defunct and does not support HTTPS. dog writes the contents of each given file, URL, or the standard input if none are given or when a file named '-' is given, to the standard output. It currently supports the file, and http(s) types. It is designed as a compatible, but enhanced, replacement of cat(1). This version of dog does not support all the options of the original dog implementation, but likely supports most of the options anyone used.
-V, --version
-h, --help
- read input from STDIN
-f, --format html/text/json/yaml/xml
-A, --show-all
-b, --number-nonblank
-e Equivalent to -vE
-E, --show-ends
-n, --number
-s, --squeeze-blank
-t Equivalent to -vT
-T, --show-tabs
-u
-w[n]
-v, --show-nonprinting
-g, --user-agent
-H, --header
--hide-nonprinting
-B, --no-blanks
--no-header
--images
--links
--upper
--lower
This version of dog supports reading from STDIN via - , pathnames, and URLs. URLS should start with http://user:pass@URI , https://user:pass@URI , ftp://user:pass@filepath , ssh2.sftp://user:pass@example.com/filepath , ftps://user:password@example.com/filepath , zip://filepath
If specified, user (-U) and password (-P) will be sent to all given URLs.
Note that dog may not be adequate for diagnosing Web server output, as line endings are stripped from headers before dog displays them.
cat(1), concatenate files and print on the standard output
Ron Guerin <ron@vnetworx.net>
dog can be found at https://gothamcode.com/dog and bugs/patches can be
submitted by email.
| 2025-07-19 | July 2025 |