* rbo...@apache.org wrote: > Author: rbowen > Date: Mon Jul 4 17:19:08 2016 > New Revision: 1751351 > > URL: http://svn.apache.org/viewvc?rev=1751351&view=rev > Log: > Give an example of converting a password file from one format to the > other. > > Modified: > httpd/httpd/trunk/docs/manual/programs/htdbm.html.en > httpd/httpd/trunk/docs/manual/programs/htdbm.xml > > Modified: httpd/httpd/trunk/docs/manual/programs/htdbm.html.en > URL: > http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/programs/htdbm.h >tml.en?rev=1751351&r1=1751350&r2=1751351&view=diff > =========================================================================== >=== --- httpd/httpd/trunk/docs/manual/programs/htdbm.html.en (original) +++ > httpd/httpd/trunk/docs/manual/programs/htdbm.html.en Mon Jul 4 17:19:08 > 2016 @@ -279,6 +279,20 @@ > > <p>Encrypts the password from the command line > (<code>Pwd4Steve</code>) using the MD5 algorithm, and stores it in the > specified file.</p> + > + <p>To convert an existing text file <code>htpasswd</code>-generated > + password file to a <code>dbm</code> file, use <code>awk</code> to > + feed each line of that file into <code>htdbm</code>:</p> > + > + <div class="example"><p><code> > + htdbm -cbp passwords.dbm bogus bogus > + awk ‘BEGIN { FS=”:” }; {system (“htdbm -bp > passwords.dbm ” $1 ” ” $2)}’ passwords + htdbm > -x bogus > + </code></p></div>
I think, those characters won't work on the shell (c&p!). They should be single and double quotes, right? Cheers, nd -- Winnetous Erbe: <http://pub.perlig.de/books.html#apache2> --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org For additional commands, e-mail: docs-h...@httpd.apache.org