From 922f7d3f4de80c13f9e90252be205d948f3b7f18 Mon Sep 17 00:00:00 2001 From: I-Man Ng Date: Thu, 9 May 2019 14:58:28 +0800 Subject: [PATCH] Add commands to download this README Thanks to Samuel_first's commands on Reddit. --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 2e337cd..cb0fc71 100644 --- a/README.md +++ b/README.md @@ -1140,6 +1140,21 @@ job 1 at Wed Apr 18 11:16:00 2018 ## Download [[back to top](#handy-bash-oneliner-commands)] + +##### Download the content of this README.md (the one your are viewing now) +```bash +curl https://raw.githubusercontent.com/onceupon/Bash-Oneliner/master/README.md | pandoc -f markdown -t man | man -l - + +# or w3m (a text based web browser and pager) +curl https://raw.githubusercontent.com/onceupon/Bash-Oneliner/master/README.md | pandoc | w3m -T text/html + +# or using emacs (in emac text editor) +emacs --eval '(org-mode)' --insert <(curl https://raw.githubusercontent.com/onceupon/Bash-Oneliner/master/README.md | pandoc -t org) + +# or using emacs (on terminal, exit using Ctrl + x then Ctrl + c) +emacs -nw --eval '(org-mode)' --insert <(curl https://raw.githubusercontent.com/onceupon/Bash-Oneliner/master/README.md | pandoc -t org) +``` + ##### Download all from a page ```bash