I had to grep recently for a password that may have been saved in a file. I did not want that line to show up in the bash history. 

How can I prevent a password or other sensitive information from being stored in the bash history when using grep? For example, how can I get grep to read the pattern from stdin or console?