Created
October 31, 2015 01:42
-
-
Save SimonSchubert/7db4209ebac7ffded840 to your computer and use it in GitHub Desktop.
Create linux man page html file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DATABASE="/home/simon/Dev/projects/LinuxCommandBibliotheca/app/src/main/assets/databases/commands.db" | |
id=10 | |
manpage="$(sqlite3 $DATABASE "SELECT manpage FROM commands WHERE _id=$id")" | |
title="$(sqlite3 $DATABASE "SELECT name FROM commands WHERE _id=$id")" | |
category="$(sqlite3 $DATABASE "SELECT category FROM commands WHERE _id=$id")" | |
echo $manpage > $title"_"$category".html" | |
echo $title |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment