How to dump content of a man-db database in text format
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.
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:
- Scripting: How do I process accounting file /var/account/pact?
- Restore a backup of a MySQL Database Server
- Howto: UNIX or Linux convert DOS newlines CR-LF to Unix/Linux format
- Howto: Linux convert an image between different formats from command prompt
- The Best cms, most flexible, and open source CMS software
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!



Recent Comments
Yesterday ~ 3 Comments
09/06/2008 11:03 pm (2 days ago) ~ 12 Comments
09/06/2008 02:10 pm (2 days ago) ~ 7 Comments
09/06/2008 06:51 am (2 days ago) ~ 2 Comments
09/06/2008 01:28 am (2 days ago) ~ 3 Comments