mdcat - Markdown-friendly variant of cat
Ever struggling quickly documenting your server configuration files in a Git repo or sharing them with your colleagues for the future reference? Welcome to mdcat.
It is a simple Python 3 command line utility, ingesting file path(s) arguments, and printing their content in Markdown-friendly format.
Moreover, it prints the file's absolute path, mode (permissions), and owner (user + group).
- Python3 + PIP
Install/upgrade the tool from PyPI using:
$ pip3 install --upgrade mdcat
$ mdcat --help Usage: mdcat [OPTIONS] [FILES]... Options: --version Show the version and exit. --help Show this message and exit.
$ echo foo >> bar $ mdcat bar
File: `/home/pavel/mdcat/bar` (`0644 pavel:users`): foo
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Pavel Hübner - Initial work