The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find a specific files in a many directory selamba_warrior Shell Programming and Scripting 7 05-28-2008 12:41 PM
find the specific file in unix server dsdev_123 AIX 3 03-28-2008 12:51 PM
find files with specific date and time itik AIX 3 01-18-2008 10:21 AM
stdout redirected? Naanu SUN Solaris 1 02-11-2007 09:03 AM
Find the size of a single specific file nortypig Shell Programming and Scripting 3 08-22-2006 05:00 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-29-2006
Registered User
 

Join Date: Sep 2006
Posts: 3
find cannot be redirected to specific stdout ?

I tried to redirect the find command to a file (using find ..... > asdf ) and the file asdf is always empty . The results keep appearing on the screen.

Is there another way to do this ?

hmm . i just figured out that the file is empty only when in fact all results of the find command give a permission denied output . the file has results in any other case -

case closed .

Last edited by Shady_Creeper; 09-29-2006 at 07:39 AM.
Reply With Quote
Forum Sponsor
  #2  
Old 09-29-2006
Registered User
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 130
Just an FYI:

"> asdf", or "1>asdf" redirects find's stdout (normal processing messages). "2>asdf" would redirect find's stderr (error messages). If you'd like BOTH to go to the same file,

find ... 1>asdf 2>&1
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0