AIX: Do tar & gzip in one shot
Some time it is very handy to have tar and gzip in one line and here is example:

root@TEST10(/u01)# tar cvf - stage |gzip > stage.tar.gz

root@TEST10(/u01)# ls -ltr
total 19907656
drwxrwxr-x    2 grid     oinstall        256 Feb 24 2014  lost+found
drwxrwxr-x    5 grid     oinstall        256 Feb 25 2014  app
drwxrwxr-x    4 grid     oinstall       4096 Mar 04 2014  stage
-rw-r-----    1 root     system   10192712108 Aug 14 11:54 stage.tar.gz
root@TEST10(/u01)#

Now unzip and untar with same ownership and privileges.


root@TEST10(/u01)# gunizp < stage.tar.gz |tar xvf -