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
append a ' to the $1 $2 ppass Shell Programming and Scripting 2 05-26-2008 06:59 AM
Append using awk Raynon Shell Programming and Scripting 4 11-04-2007 03:19 AM
ftp append brdholman UNIX for Dummies Questions & Answers 1 10-31-2007 07:02 AM
append to fle using sed shweta_d Shell Programming and Scripting 2 06-12-2007 11:57 PM
Redirect stdout & stderr and append to a file Santi Shell Programming and Scripting 2 01-02-2006 04:58 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-06-2001
Registered User
 

Join Date: Jul 2001
Posts: 4
Append and redirect

Can somebody please explain to me what redirection (>) and append are? What is the difference between > and >>?

Thank-you
__________________
Anna
Forum Sponsor
  #2  
Old 07-06-2001
Registered User
 

Join Date: Jun 2001
Location: Leicestershire, UK
Posts: 92
Hi,

If you use > to redirect output to a file a new file will always be created:

Using >> to redirect output to a file will only create a new file if the file doesn't exist, if the file exists then the output will be appended to the end of the file.

Andy Hibbins
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:36 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