rddst
is a command to get a redirect destination.
Use go get
to install.
$ go get -u github.com/o-sk/rddst/cmd/rddst
$ rddst <url>
$ rddst https://google.com
https://www.google.com/
If -s option is specified, exit with error when the url is not redirect.
% rddst http://example.com
http://example.com
$ rddst -s http://example.com
The url is not redirect