Home > Archive > Unix Programming > September 2004 > Pipe command outputs to file without overwriting ...
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Pipe command outputs to file without overwriting ...
|
|
| Vaddina Prakash Rao 2004-09-30, 11:36 am |
| 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
| |
| Heiko 2004-09-30, 11:36 am |
| 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
| |
| Vaddina Prakash Rao 2004-09-30, 11:36 am |
| Thanks for the information ... It really helps ..
|
|
|
|
|