The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problem about using zlib to uncompress gzip in memory iwishfine High Level Programming 0 03-25-2007 02:56 AM
gzip problem rkrgarlapati Shell Programming and Scripting 6 09-20-2006 10:03 PM
tar/gzip/gz...which one to use? abhijeetkul UNIX for Advanced & Expert Users 5 03-24-2006 03:00 AM
using gzip nattie_h UNIX for Advanced & Expert Users 2 11-15-2002 11:28 AM
gzip or FTP problem? DGM UNIX for Advanced & Expert Users 2 09-12-2001 05:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-12-2007
UBD UBD is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 8
gzip problem

Hi,

I am quite new to unix.
I need to do the following using gzip.

a file suppose abc.gz is in the directory.
I need to uncompress it and rename the uncompressed file to ecoes.dat.

can anyon please help me in this regard??
  #2 (permalink)  
Old 12-12-2007
uvrakesh uvrakesh is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 78
gzip -d abx.gz > ecos.dat
  #3 (permalink)  
Old 12-12-2007
UBD UBD is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 8
Exclamation this is not working

Hi ,
this is not working .this is creating a blank file with the same name but without any content.
  #4 (permalink)  
Old 12-12-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,323
Correct, the > will read STDOUT first, so point the stream with -c flag like : "gzip -dc abx.gz > ecos.dat" - this will do the trick.
  #5 (permalink)  
Old 12-12-2007
UBD UBD is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 8
Thumbs up Thanks a lot

thaks boss its working
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0