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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s