find supress permission errors Running find command on root folder :

find / -type d -wholename "prog" -print


Keep seeing errors like 

find: ./Users/auser/Library/Preferences: Permission denied


How can I supress these? If no option in find can you help with a script that greps out the permission messages? Guess need to ignore output that has ": Permission denied" in the end.
A rather simple way would be to run

find / -type d -wholename "prog" -print 2&gt;&amp;1 | grep -v ": Permission denied"


(which would filter out any folders with "Permission denied" in the name as well, but that's probably not an issue).