in reply to .pag and .dir - what db format??

To add another spanner/clue to this.

I had several database files like this on a Solaris system. I discovered .db files are hash databases and .dir and .pag are dbms.

For example, on sendmail we have a aliases file called oddly enough, aliases which has the following format:

alias: user1 alias2: user2, user3

To create the .pag and .dir we would use:

#makemap dbm alias < alias

Which would result in aliase.pag and alias.dir being made from the alias text file.

For the .db files, the command was:

#makemap hash alias < alias

Making alias.db.

However, in attempting to get info from these files, I found typing:

#strings alias.dir
#strings aliase.pag

was a good way of just getting the ascii strings out.

Maybe you could do this, piping the output to a text file before processing in perl.

- jed

P.S: In the above the # is not to be typed, it represents the shell prompt.