I'm not sure I understand what you mean. Filter out comments from the passwd database? I can't say I know from personal experience, but [this page suggests passwd file cannot hold comments](http://h30499.www3.hp.com/t5/Languages-and-Scripting/comment-in-passwd-file/td-p/3992561).