ggggus
Programmer
- Jul 5, 2003
- 114
I'm a relative newbie trying to understand the pipe.
I've got a gzip'ed log file that I want to run a couple of commands on...sure I could run them all seperately, but I'm trying to run them from a php application...and more importantly, I'm trying to learn new stuff here....so here's what I've got.
gzip -d php_error_log.1.gz | tac > temp.log
But that doesn't work...it unzips the log file and creates a blank temp.log file. Can someone tell me how to do what I'm trying to do in one line?
***************************************
J. Jacobs
I've got a gzip'ed log file that I want to run a couple of commands on...sure I could run them all seperately, but I'm trying to run them from a php application...and more importantly, I'm trying to learn new stuff here....so here's what I've got.
gzip -d php_error_log.1.gz | tac > temp.log
But that doesn't work...it unzips the log file and creates a blank temp.log file. Can someone tell me how to do what I'm trying to do in one line?
***************************************
J. Jacobs