About Linux FAQ

Browse More FAQs:

How to dump content of a man-db database in text format

Posted by Vivek Gite [Last updated: September 12, 2006]

Q. For scripting and automation purpose I need the the content of a man-db database in a human readable format. How do I dump content of a man-db database in text format?

A. You need to use accessdb command, which will output the data contained within a man-db database in a human readable form. By default, it will dump the data from /var/cache/man/index., where is dependent on the database library in use.

Type the command as follows:
$ accessdb
Output:

$mtime$ -> "1157392570"
$version$ -> "2.4.1"
/etc/adduser.conf -> "- 5 5 1109918260 C adduser.conf - gz "
/etc/deluser.conf -> "- 5 5 1109918260 C deluser.conf - gz "
/etc/hosts.equiv -> "- 5 5 1097931920 C hosts.equiv - gz "
/etc/login.defs -> "- 5 5 1116397991 C login.defs - gz "
/etc/modules -> "- 5 5 1103452809 C modules - gz "
/etc/network/interfaces -> "- 5 5 1115042953 C interfaces - gz "

Or dump output to a text file:
$ accessdb > /tmp/output.txt

E-mail this to a friend      Printable version

Related Other Helpful FAQs:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.