Pipe command outputs to file without overwriting ...
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Pipe command outputs to file without overwriting ...




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Pipe command outputs to file without overwriting ...  
Vaddina Prakash Rao


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-30-04 03:46 PM

Hi,
How can i use the pipe command to write terminal outputs to the same
file without being overwritten .....
Currently i am using the command ... which overwrites the file
everytime i try it again.

$ ps ax > filename

thanks for your time
prakash





[ Post a follow-up to this message ]



    Re: Pipe command outputs to file without overwriting ...  
Heiko


Report This Message To A Moderator Edit/Delete Message


 
09-30-04 03:46 PM

Vaddina Prakash Rao wrote:

> How can i use the pipe command to write terminal outputs to the same
> file without being overwritten .....
> Currently i am using the command ... which overwrites the file
> everytime i try it again.
>
> $ ps ax > filename

Strictly, it is not a "pipe", but "redirection".
To append to the file instead of overwriting it, use a double '>'.

$ ps ax >> filename

Regards,

Heiko





[ Post a follow-up to this message ]



    Re: Pipe command outputs to file without overwriting ...  
Vaddina Prakash Rao


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-30-04 03:46 PM

Thanks for the information ... It really helps ..





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:17 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register