file-pager
I end up opening files in a terminal to browse their contents fairly often.
pager
and less
make quick work of local files but aren’t immediately useful for text logs and other content served over http(s).
The following bash script can be used to open either a local file or URL in a pager by conditionally downloading the file into a temporary directory beforehand:
This could easily be expanded to support other protocols e.g. (s)ftp://
.
This script is also in gist form.