02-20-2013
The zip command is working very well in a linux environment, reconsider your statement!
Windows does not like unix texts using <linefeed> chars as line separators; it requires <carriage return> <line feed> separators.
Use tools like unix2dos or recode to convert your files to windows format prior to zipping.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
What is the appropriate command to zip a folder that contain sub folder
and files? Example:
Folder lunaa
In the folder there are a number of folder e.g 01526, etc...which
contains number of file.
Any idea would be grateful.
Many thanks (1 Reply)
Discussion started by: su_in99
1 Replies
2. Shell Programming and Scripting
Hi All,
I have the following requirement.
Source file Products_Extract.dat contains <CTRL M > characters and hence is in DOS format.
I zip this file using zip command in UNIX BOX as follows:
find . -name Products_Extract.dat|zip Target.zip -@
Next I ftp (in Binary MODE) this output zip... (3 Replies)
Discussion started by: sureshg_sampat
3 Replies
3. UNIX for Dummies Questions & Answers
Hi guys,
I have a question about the zip command. Right now I have a directory with some files and folders on it that I want to compress. When I run the zip command:
zip foo -r
I am getting a foo.zip file that once I unzip it contains a foo folder. I want to create the foo.zip, but that... (1 Reply)
Discussion started by: elioncho
1 Replies
4. UNIX for Dummies Questions & Answers
Hi friends
I am working in cygwin. Currently I am in root directory(C). I want to zip only the files from a diretory "A" to a new directory 1.zip in root directory C.
I am using the following command:
$: zip 1.zip A/*
but it is zipping the entire directory itself, But what I want is when... (4 Replies)
Discussion started by: ks_reddy
4 Replies
5. Shell Programming and Scripting
Hello,
I have some troubles with script that creates a zip archive.
First I added following command:
zip -r /path/to/folder/packed_file.zip /another/path/folder_for_packing
But there is a problem: how to zip the folder without adding full path inside the archive?
'folder_for_backing'... (3 Replies)
Discussion started by: assamalla
3 Replies
6. Shell Programming and Scripting
Hi ,
How to compress the entire directory .
Rajesh (1 Reply)
Discussion started by: guddu_12
1 Replies
7. AIX
I am trying zip a file in a aix and getting error below
#zip -P welcome test.zip test.csv
zip error: Invalid command arguments (encryption not supported)
Myos details are
5300-04-03
RPM installed are
---
$ rpm -q zip
zip-2.3-3
Please help me to resovel this.
Please use code... (2 Replies)
Discussion started by: venkataraju
2 Replies
8. UNIX for Dummies Questions & Answers
hi
i am not able to use zip command in aix.
getting below error
zip abc.zip
ksh: zip: not found.
oslevel
5.3.0.0 (4 Replies)
Discussion started by: scriptor
4 Replies
9. Shell Programming and Scripting
HI Guys,
I using below command to zip data but in zip file i have entire path of source.
zip $HOME/EM/ZIPData/All.tar.gz /vr/rt/on/mg/set/XM/Swor/xt/0300*.*
In Zip file i have entire path vr/rt/on/mg/set/XM/Swor/xt/
I just want file data zip in may target location (2 Replies)
Discussion started by: pareshkp
2 Replies
10. Shell Programming and Scripting
Hi,
I wish to zip a folder with only those files which have ".properties" extension while excluding all other file extensions be it in the same folder or sub-folder.
Can you help me with how can get that to work ? (1 Reply)
Discussion started by: mohtashims
1 Replies
PWD(1) BSD General Commands Manual PWD(1)
NAME
pwd -- return working directory name
SYNOPSIS
pwd [-L | -P]
DESCRIPTION
The pwd utility writes the absolute pathname of the current working directory to the standard output.
Some shells may provide a builtin pwd command which is similar or identical to this utility. Consult the builtin(1) manual page.
The options are as follows:
-L Display the logical current working directory.
-P Display the physical current working directory (all symbolic links resolved).
If no options are specified, the -P option is assumed.
ENVIRONMENT
Environment variables used by pwd:
PWD Logical current working directory.
EXIT STATUS
The pwd utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
builtin(1), cd(1), csh(1), sh(1), getcwd(3)
STANDARDS
The pwd utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
BUGS
In csh(1) the command dirs is always faster because it is built into that shell. However, it can give a different answer in the rare case
that the current directory or a containing directory was moved after the shell descended into it.
The -L option does not work unless the PWD environment variable is exported by the shell.
BSD
April 12, 2003 BSD