Issue with unzip command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Issue with unzip command
# 1  
Old 05-17-2012
Issue with unzip command

I have a zip file on the unix server. when I unzip it using unzip command(unzip -q filename.zip) then the timestamp for the files less than 6 months to the current date are not retrieved instead It is setting the time as 12:00 AM to those files.
I have some operations based on the datetimestamp of these files and when I unzip the file,the dates for the files are retreived properly but the timestamp is causing an issue for the files less than 6 months to current date.Any help is highly appreciated .Thanks in advance

Regards,
K.K
Image
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Tar and unzip on single command

Hi All, First of all I don't know whether this is possible. or no. Thought of getting experts thought. I am having a tar file which contains zipped file in it . I tried individual command with extraction and it worked tar -tvf TRANS_279.tar -rw-rw-r-- qqa00 1394 2016-10-03 10:39:19... (8 Replies)
Discussion started by: arunkumar_mca
8 Replies

2. UNIX for Advanced & Expert Users

Unzip command

Hi I have a zip file at linux while unziping those files using unzip command in rare scenario it copy the 0 size file to the destination. These files are .so file with their soft link.It is happening for one of .so file. (2 Replies)
Discussion started by: AnkitMogha
2 Replies

3. Shell Programming and Scripting

Unzip the .zip file without using unzip utility in UNIX

I have .zip file, i want to list all the files archived in the zip file. unzip utility is not working for me in unix. Please help me resolve this issue Thanks ganesh. (3 Replies)
Discussion started by: Ganesh L
3 Replies

4. UNIX for Dummies Questions & Answers

UNIX unzip command

Hi, i transferred a .zip file from windows to Unix. i'm getting error while doing unzip in Unix like command : bash-3.2$ unzip ******.zip message : Archive: *******.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk... (2 Replies)
Discussion started by: asv444
2 Replies

5. UNIX for Advanced & Expert Users

Issue with unzip command

I have a zip file on the unix server. when I unzip it using unzip command(unzip -q filename.zip),then date values are retained properly for all the files but the time stamp is getting set to 12:00 AM for the files less than 6 months to the current date.Any help is highly appreciated .Thanks in... (2 Replies)
Discussion started by: vkishore1234
2 Replies

6. Shell Programming and Scripting

Single command - unzip files from a tar command

I have a tar file that contains multiple .Z files. Hence I need to issue a tar command followed by a gzip command to fully extract the files. How do I do it in a single command? What I'm doing now is tar xvf a.tar (this will output 1.Z and 2.Z) gzip -d *.Z (to extract 1.Z and 2.Z) (9 Replies)
Discussion started by: ericlim
9 Replies

7. Shell Programming and Scripting

unzip command

i want to know how to unzip a archive file by replacing the same folder with file name.. help me or not! :)http://www.unix.com/images/smilies/rolleyes.gif (6 Replies)
Discussion started by: shunan
6 Replies

8. Shell Programming and Scripting

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

9. HP-UX

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

10. UNIX for Dummies Questions & Answers

unzip command

The program asks, whether you want to replace, rename, etc., the file before unzipping. Is there any other command which can unzip the Winzip file in unix or any way so that this message will not come. As i have to run it thru the job scheduler. Thanks, Gaurav (1 Reply)
Discussion started by: gammit
1 Replies
Login or Register to Ask a Question
ZIPGREP(1L)															       ZIPGREP(1L)

NAME
zipgrep - search files in a ZIP archive for lines matching a pattern SYNOPSIS
zipgrep [egrep_options] pattern file[.zip] [file(s) ...] [-x xfile(s) ...] DESCRIPTION
zipgrep will search files within a ZIP archive for lines matching the given string or pattern. zipgrep is a shell script and requires egrep(1) and unzip(1L) to function. Its output is identical to that of egrep(1). ARGUMENTS
pattern The pattern to be located within a ZIP archive. Any string or regular expression accepted by egrep(1) may be used. file[.zip] Path of the ZIP archive. (Wildcard expressions for the ZIP archive name are not supported.) If the literal filename is not found, the suffix .zip is appended. Note that self-extracting ZIP files are supported, as with any other ZIP archive; just specify the .exe suffix (if any) explicitly. [file(s)] An optional list of archive members to be processed, separated by spaces. If no member files are specified, all members of the ZIP archive are searched. Regular expressions (wildcards) may be used to match multiple members: * matches a sequence of 0 or more characters ? matches exactly 1 character [...] matches any single character found inside the brackets; ranges are specified by a beginning character, a hyphen, and an end- ing character. If an exclamation point or a caret (`!' or `^') follows the left bracket, then the range of characters within the brackets is complemented (that is, anything except the characters inside the brackets is considered a match). (Be sure to quote any character that might otherwise be interpreted or modified by the operating system.) [-x xfile(s)] An optional list of archive members to be excluded from processing. Since wildcard characters match directory separators (`/'), this option may be used to exclude any files that are in subdirectories. For example, ``zipgrep grumpy foo *.[ch] -x */*'' would search for the string ``grumpy'' in all C source files in the main directory of the ``foo'' archive, but none in any subdirectories. Without the -x option, all C source files in all directories within the zipfile would be searched. OPTIONS
All options prior to the ZIP archive filename are passed to egrep(1). SEE ALSO
egrep(1), unzip(1L), zip(1L), funzip(1L), zipcloak(1L), zipinfo(1L), zipnote(1L), zipsplit(1L) URL
The Info-ZIP home page is currently at http://www.info-zip.org/pub/infozip/ or ftp://ftp.info-zip.org/pub/infozip/ . AUTHORS
zipgrep was written by Jean-loup Gailly. Info-ZIP 20 April 2009 ZIPGREP(1L)