Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

zcat command

Status
Not open for further replies.
Jul 17, 2003
155
US
How do you use the zcat command to uncompress but leave the original file intact like using unzip -qq file.zip?

For example, after running zcat on this file: test.Z
I would have: test.Z and test

Thank you
 
Have you just tried this ?
zcat test.Z > test

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
zcat file.Z >file

same as

uncompress -c file.Z >file

pay attention - shell will write over any existing file with the same name... (use set -o noclobber or run bash -C / ksh -C to prevent accidental overwrite by redirection)


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top