BASH SCRIPTING 101 – Convert a man page to pdf and read it in Preview on a Mac

With the following command, you can convert the ps-formatted manpage automatically to pdf and it opens in preview. Works on every Mac:

man -t sed | open -f -a preview

WARNING: Allways be careful when you use a shell command, I don’t take any responsibility for accidents or data loss that result from using the shown example commands. If you want to know more about the used commands, take a look in the associated manpages.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert