Find directory without warning


To remove the warning from a find if your using a grep.

Just add 2>/dev/null to the find command that your running.

find /directory/ -type d -maxdepth 1 -exec basename {} \;  2>/dev/null | grep -v lbr | egrep "*-10-*"
Advertisements