Unix/Linux 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 Linux or Unix Question    
 
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: 3 February 2015, 2:46 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 Unix and Linux 08-24-2011
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 24 April 2015, 6:26 PM EDT
Location: Saskatchewan
Posts: 20,522
Thanks: 880
Thanked 3,622 Times in 3,386 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 Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image 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 11:59 AM.