emkay443

nman - Manpages with nano

Aug 15th, 2013
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/sh
  2. # Opens manpages with nano
  3. # Allows for comfortable searching, saving, editing
  4. #
  5. # Author: Michael Koch (Emkay443) (m<DOT>koch<AT>emkay443<DOT>de)
  6. # Version: 2013-09-24
  7. # License: GNU General Public License v3 (http://www.gnu.de/documents/gpl-3.0.en.html)
  8.  
  9. manpages=$*
  10. for page in $manpages; do
  11.     tmpfile=/tmp/nano_manpage$$
  12.     man $page > $tmpfile && nano $tmpfile && rm $tmpfile
  13. done
Advertisement
Add Comment
Please, Sign In to add comment