The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Use records from one file to delete records in another file kenneth.mcbride UNIX for Dummies Questions & Answers 5 06-18-2008 03:36 PM
grep all records in a file and get a word count -perl meghana Shell Programming and Scripting 4 02-13-2008 10:06 PM
To find the count of records from tables present inside a file. navojit dutta Shell Programming and Scripting 1 08-29-2007 12:04 PM
Count No of Records in File without counting Header and Trailer Records guiguy Shell Programming and Scripting 2 06-07-2007 01:15 PM
How to count the record count in an EBCDIC file. oracle8 UNIX for Dummies Questions & Answers 1 07-26-2006 08:22 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 09-23-2008
tekster757 tekster757 is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 33
Count records in a zip file

Hello,

I searched the forums on the keywords in the title I used above, but I did not find the answer:

Is it possible to count records in a .zip file on an AIX machine if i don't have pkunzip installed?

From all the research I'm reading in google and the reading of pkunzip in Unix.com, I'm assuming that if I can't unzip it, I can't count it... ?

(It's a big company, so no, I can't install any freeware to help me...)

Thanks,
  #2 (permalink)  
Old 09-23-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,808
Are the zip files created on AIX? If there are no tools/libraries to zip/unzip on AIX, why are the files of interest? They cannot be used there. If they are part of production requirement the tools have to live somewhere on another server. MAybe a PC.

Can you NFS mount a PC share? You can extract those files there on the PC, then read them back on AIX.

You can install cygwin (free) on your local PC, if you have one. cygwin allows you to install any freeware you want. And run it against PC files.
  #3 (permalink)  
Old 09-24-2008
tekster757 tekster757 is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 33
Thanks for your response -

The files are created by another company as a .txt file, zipped through winzip and ftp'd to us. I'm a mediator who just takes the files and ftp's them to the vendor who wants to actually use the file. All other companies (who send us source files) and vendors (who receive the files) have unix servers and this is the only company that doesn't even know what Unix is.

Since this is a large company with tight controls, I would not be allowed to NFS mount a PC share (wouldn't that be wonderful? )

The interest in these files is simply that I usually do a record count and put that along with the file size in notification emails to the vendors which at least helps to serve as some kind of flag when something might go wrong. But because this one company is a Windows shop that only sends files with a .zip extension, and I can't create a connection between the AIX server and my PC, it sounds like I will not be able to do a record count on the file... ?
  #4 (permalink)  
Old 09-24-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,808
That is correct. Unless you have zgrep, zcat, or unzip, you are out of luck.
Closed Thread

Bookmarks

Tags
count, record, zip

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 04:04 PM.


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