Find - prints Permission denied | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Find - prints Permission denied

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-24-2011
Dev_Dev Dev_Dev is offline
Registered User
 
Join Date: Aug 2011
Last Activity: 3 January 2014, 5:43 AM EST
Posts: 26
Thanks: 15
Thanked 0 Times in 0 Posts
Find - prints Permission denied

Hi,

I'm trying to search for files with a particular pattern using the below command.

find . -name file_1.txt -print

It gives Permission denied error on several files, using standard error, how do we ignore this error and print only the valid matches.

find: ./export/home/.snapshot/hourly.0/xyz/.sunw: Permission denied

Please help, thank you.
Sponsored Links
    #2  
Old 08-24-2011
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 22 September 2014, 9:56 PM EDT
Location: Saskatchewan
Posts: 19,409
Thanks: 790
Thanked 3,273 Times in 3,068 Posts
They're just warnings, not errors, since they don't stop find from continuing. So just dump the error messages into the bit bucket:

Code:
find ... 2> /dev/null

The Following User Says Thank You to Corona688 For This Useful Post:
Dev_Dev (08-26-2011)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Permission denied lhareigh890 Shell Programming and Scripting 4 06-27-2011 10:08 AM
/dev/fb: Permission denied sreyes27 UNIX for Advanced & Expert Users 1 05-21-2009 01:39 PM
Permission denied big123456 UNIX for Advanced & Expert Users 1 10-10-2007 07:17 AM
./ Permission Denied. trouscaillon UNIX for Dummies Questions & Answers 8 01-26-2005 08:33 PM
rcp 'permission denied' Kevin Pryke UNIX for Dummies Questions & Answers 6 04-24-2002 04:20 AM



All times are GMT -4. The time now is 02:20 AM.