-
Members
Can someone give me the syntax of how to use the tar command on a bunch of files in the current directory and then pipe it to the gzip command. I have tried the following and it doesn't work:
tar -cvf rman_hot.tar . | gzip > rman_hot.tar.gz
Thanks a lot in advance,
roukie-dba
-
tar cvf - test*.log | gzip >test_tar.Z
-
Thanks T. for the quick response. One question though, what does the dash '-' after cvf means?
Thanks again!
roukie-dba
-
it means to send the tarball to stdout instead of a file...
Jeff Hunter
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|