linux - grep -v do not filter the lines outputs -


i doing search on linux console find /export/home01/ -name sql | grep -v 'permission denied'

however, failed filter out lines "permission denied"

like showing lines of find: /export/home01/oracle/oracle/product/11.2.0/db_1/network/log: permission denied.

what's wrong command?

however, failed filter out lines "permission denied"

this expected: filtering stdout, error messages (usually) go stderr. try this:

find /export/home01/ -name sql 2>&1 | grep -v 'permission denied' 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -