SyntaxFix
Write A Post
Hire A Developer
Questions
FWIW, htpasswd -n username will output the result directly to stdout, and avoid touching files altogether.
htpasswd -n username