gunzip syntax help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers gunzip syntax help
# 1  
Old 07-23-2007
Question gunzip syntax help

Hi All,
I am a newbie to unix and need help.
I am trying to unzip the files in source library to destination library.
the input filename can be any thing with abc and after unzip, i want the same file name with original extension
suppose,the input file is ABC_jun25.dat.gz after gunzip in the out put path, it should be ABC_jun25.dat

Please help. *.dat is not fixed, it could be .txt or any other.

INPUTPATH=/var/opt/itr2/data/archive/
OUTPUTPATH=/var/opt/itr2/data/input/
FILENAME=*ABC*



gunzip -c $INPUTPATH/$FILENAME > $OUTPUTPATH/?????????
# 2  
Old 07-23-2007
Onlyjayaram,
When posting here, be patient.

Allow time for people to work on your issue.

You are breaking the rules by duplicating posts:
https://www.unix.com/shell-programmin...#post302128258
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

gunzip status

Hi, I'm trying to run my application on HP-UX server. I have to extract a *.tar.gz file. I'm doing that now in 2 steps. first I gunzip it and then pax it. My question is how can I check whether the data in the *.tar.gz file is corrupted or not?? Now, I'm trying to do this... (1 Reply)
Discussion started by: Kyaw Lwin Phyo
1 Replies

2. SCO

gunzip problem

hi On one of our SCO 5.0.6 server gunzip doesn't work and I'm getting this error message: # gunzip dynamic linker: gunzip: symbol not found: ___requires_updated_system_library_se_ Killed What's missing? (0 Replies)
Discussion started by: ccc
0 Replies

3. Shell Programming and Scripting

gunzip with out messages

Hi all, tar cvPf - /data/test | gzip > /data/backups/test.gz i am running th above command when i execute it giving a big list of files that in test which it is tarring..on the terminal.... is der nay way to do it silently ..... like with out getting those messages on the terminal..... ... (1 Reply)
Discussion started by: firestar
1 Replies

4. Shell Programming and Scripting

Help with gunzip

Hi All, I have a file "HOTEL_INFO.zip" and getting the below errors: server1:/home/arun# gunzip -S .zip HOTEL_INFO.zip gunzip: HOTEL_INFO.zip: first entry not deflated or stored -- use unzip server1:/home/arun#unzip HOTEL_INFO.zip ksh: unzip: not found. ... (11 Replies)
Discussion started by: Arunprasad
11 Replies

5. UNIX for Dummies Questions & Answers

gunzip

I have a zip file as a.zip and it contains 1m xml files. like a1.xml, a2.xml.... The size is also very big nearly 1GB. I want to extract only a123.xml. Can any one help how can I do this? (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

6. Shell Programming and Scripting

Help on gunzip

Hi All, I am using UNIX command to unzip the files gzip -d9 DW_*.gz The Xmls are compressed using gzip and it is received in the .gz format at UNIX box which need to be uncompressed. The above command is working fine for 400 compressed xmls(.gz files) but when the count becomes 401 or more i... (7 Replies)
Discussion started by: Codesearcher
7 Replies

7. HP-UX

error using gunzip

Good day, Recently I zipped an oracle export file task123.dmp using gzip. And now I am trying to unzip it using gunzip task123.dmp.gz but am unable to do so. It keeps on giving the following error; > gunzip task123.dmp.gz gunzip: task123.dmp: File too large The task123.dmp.gz file... (3 Replies)
Discussion started by: Keyser Soze
3 Replies

8. UNIX for Dummies Questions & Answers

gunzip error

While trying to gunzip afile I get the following error message ls -l UK_US_02310.dat.gz -rwxrwxrwx 1 imis abint 348854527 Jan 8 00:17 UK_US_02310.dat.gz gunzip UK_US_02310.dat.gz gunzip: UK_US_02310.dat.gz: invalid compressed data--format violated I can gzcat the file and pipe to... (3 Replies)
Discussion started by: mccoubreyr
3 Replies

9. UNIX for Dummies Questions & Answers

gunzip error

I am trynig to unzip a file with gunzip, and am getting an error 'File too large'. Any ideas on how to get around this? (2 Replies)
Discussion started by: pkappaz
2 Replies

10. UNIX for Dummies Questions & Answers

Gunzip

Hi can't unzip a gz file in TurboLinux 7.0 when i'm trying this gunzip filename.tar.gz it always says not in gzip format what should I do...please help me (4 Replies)
Discussion started by: CreamHarry
4 Replies
Login or Register to Ask a Question