Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

Find - prints Permission denied

UNIX for Dummies Questions & Answers


 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 08-24-2011
Dev_Dev Dev_Dev is offline
Registered User
 
Join Date: Aug 2011
Last Activity: 5 September 2016, 10:32 AM EDT
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 Unix and Linux 08-24-2011
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 29 September 2016, 6:16 PM EDT
Location: Saskatchewan
Posts: 21,522
Thanks: 993
Thanked 3,945 Times in 3,668 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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 09:46 AM.