09-19-2012
While it does now zip by explicitly providing the directory path, when I unzip the file again as a check, I get ./path/to/directory/CONTACTS_1.txt. I should also mention that $DIR is in a different directory than from where the script is run.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Using Solaris 8, I've forgotten how to exclude the current directory in the find results.
find . -type d ! -name "*.CAP"
I want every directory that does not match the *.CAP pattern, except the current directory. (2 Replies)
Discussion started by: dangral
2 Replies
2. Shell Programming and Scripting
Hi!
1. I have a parameter file containing path to log files. For this example both paths are the same, one is stated directly and the second using env variables.
/oracle/admin/orcl/bdump/:atlas:trc:N
${ORACLE_BASE}/admin/${ORACLE_SID}/bdump/:${ORACLE_SID}:trc:N
2. I try to parse the path... (1 Reply)
Discussion started by: lojzev
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a folder that contains a few sub-folders. I would like to zip that folder and KEEP the subfolders. What it does at the moment is taking all the files within the subfolders and zipping them into one big file (zip -r ...). Does anyone know the UNIX command to keep the subfolders in the... (3 Replies)
Discussion started by: gdog
3 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
I'm trying to do the following:
zip -r /tmp/foo.zip public/accounts/foo
But the zip that's been made has the whole "public/accounts/foo" path. I want only the foo folder to be zipped. How can I do this? Thanks,
Elías (2 Replies)
Discussion started by: elioncho
2 Replies
5. Linux
Hello,
I have generated a PHP script that creates files needed for EPUB file.
I have a temp directory where these files are created into and then needs to be zipped. The directory structure is:
mimetype
content.opf
index.html
stylesheet.css
toc.ncx
META-INF
META-INF/container.xml
... (4 Replies)
Discussion started by: spaze
4 Replies
6. UNIX for Advanced & Expert Users
Hello Folks,
A wrapper takes an argument of file or directory name.
I want to allow paths that reside within the current directory only.
Can simply discard the paths like "/A" & "../" as they go outside the current by looking at the path beginning.
How to validate this one:
A/../../../b... (4 Replies)
Discussion started by: vibhor_agarwali
4 Replies
7. Shell Programming and Scripting
Hi,
Is there a way to find all the files from a specific location and then zip them into a single file, even if they are in multiple directories? (3 Replies)
Discussion started by: rudoraj
3 Replies
8. Shell Programming and Scripting
Hi,
Is is possible to zip a folder and all its contents within the folder ( including sub-directories and files) into a zip file? and can regain the same structure if unzipped?
Thanks (6 Replies)
Discussion started by: rudoraj
6 Replies
9. Shell Programming and Scripting
zip /var/log/mylog.log mylog.1.log but its not working (5 Replies)
Discussion started by: Froob
5 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies
LEARN ABOUT MOJAVE
vfs-filesystems
vfs-filesystems(n) vfs-filesystems(n)
__________________________________________________________________________________________________________________________________________________
NAME
vfs-filesystems - Filesystems provided by tclvfs
SYNOPSIS
package require Tcl 8.4
package require vfs ?1.2.1?
package require vfs::zip ?1.0?
package require vfs::mk4 ?1.6?
package require vfs::tar ?0.9?
package require vfs::ftp ?1.0?
package require vfs::ns ?1.0?
package require vfs::webdav ?0.1?
package require vfs::http ?0.5?
package require vfs::urltype ?1.0?
vfs::zip::Mount path to
vfs::mk4::Mount path to
vfs::tar::Mount path to
vfs::ftp::Mount path to
vfs::ns::Mount path to
vfs::webdav::Mount path to
vfs::http::Mount path to
vfs::urltype::Mount path to
_________________________________________________________________
DESCRIPTION
The package vfs provides not only the means to implement a virtual filesystem at the tcl level, but also a number of ready to be used
filesystems as well.
Each of these filesystem exists as its own package, and can be accessed through package require vfs::NAME. The whole set of these virtual
filesystems is known informally as 'vfslib'.
SUPPORTED VFS TYPES
Currently supported are ftp, tar, http, zip, mk4, ns, and webdav. In addition there is the ability to mount any 'urltype' as a new direc-
tory, provided an appropriate vfs is supported. This means that you can treat urls based on the schemes ftp://, http:// and file:// as
files. To do this, simply evaluate the command vfs::urltype::Mount ftp for example. Any access inside the new volume will result in an
attempt to require a package through package require vfs::${type}, which must therefore exist, or errors will be thrown. If a filesystem
is loaded, use the associated command listed below to mount a source for that filesystem as a tcl directory.
vfs::zip::Mount path to
Mount the zip file path as directory to.
vfs::mk4::Mount path to
Mount the metakit database file file path as directory to.
vfs::tar::Mount path to
Mount the tar file path as directory to.
vfs::ftp::Mount path to
Mount the ftp url path as directory to.
vfs::ns::Mount path to
Mount the tcl namespace path as directory to.
vfs::webdav::Mount path to
Mount the webdav url path as directory to.
vfs::http::Mount path to
Mount the http url path as directory to.
vfs::urltype::Mount path to
Mount the url path, of type urltype as directory to.
LIMITATIONS
Most of the vfs types listed above have not been very well debugged as yet. Please test them!
SEE ALSO
vfs, vfs-fsapi
KEYWORDS
file, filesystem, ftp, http, metakit, namespace, tar, vfs, vfslib, webdav, zip
COPYRIGHT
Copyright (c) 2001-2003 Vince Darley <vincentdarley@users.sourceforge.net>
Copyright (c) 2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>
Tcl-level Virtual Filesystems 1.0 vfs-filesystems(n)