Hi ,
I want to zip files present in the directories listed under a parent directory without zipping the directory itself
You haven't told us which OS you are using:
Notice, that some versions of the find-command do not allow for multiple instances of the {}-macro and because i do not know which one you are using you will have to find out if yours does or doesn't. In the latter case put the zip-command into a small script to which you pass the {} as argument and call that from the find-command.
Hello all,
I have files at /var/dir1/dir2/fil1.log etc.,.
dir2 is symlinked to /export/xxx/dir3
I am trying to monitor the disk space of the mount where these log files are present.
How do I determine dynamically the actual directory of the log files and corresponding mount when I use df... (3 Replies)
Hi,
i have more than 300 tar files in directory and i want to zip all tar files to single file.
could anybody tell me the command since i know how to do zip for single tar file:
bash-3.00$gzip 2008_11_10.tar
bash-3.00$ pwd
/oracle1/archivebackup
in this directory i have lot files... (2 Replies)
Hiya,
I've been plugging away at this script and I cant get it to behave as I need.
first off it fails to adhere to the conditions of the file limit, and zips the directory regardless of the file count and secondly, but less important it zips up the entire path not just the directory I'm... (2 Replies)
Hi,
I am having some problem with a shell script which zip some files. For zipping I have used the following command:
find . -name "Test_*" -mtime 0 | zip Test_$(date +"%Y%m%d") -@
I have kept the script in /home/abc directory. It is creating the zip file within the same directory where i... (2 Replies)
I have a folder, and in this folder, there are about 197 folders.
Resources
a
files and folders
b
files and folders
Like that. I need to make a zip with files and folders in them with the name the same as the parent folder. so.
a.zip
files and folders
b.zip
files and... (4 Replies)
Hello everyone,
I am trying to make a script in KSH that will zip an entire directory but leave out one file in that directory. I then need to send that zipped directory to another UNIX box. I am new to UNIX and would appreciate a good template to study from. (3 Replies)
Hi folks,
I have an query that is let say i have to search in an xml file an tag that is <abcdef> now this xml file is at /opt/usr/local so one fastest way to achieve this is go to this location by cd /opt/usr/local and then do grep like this... grep -i abcdef but for this I must know the... (4 Replies)
Hi Folks,
I have a directory in unix that is /usr/local/pos contain the folowing directoreis ..that is
dir1
dir2
dir3
now I want to delete only dir2 please advise how to remove the directory dir 2 ..that is rm command and how to use it , and second if I want to zip the dir3 please... (1 Reply)
Hi Folks,
I have logs at the following location
cd /out/app/logs/
now that logs directory contain different types of logs now sometimes i need to
do disk clean up activity so i need to zipped the logs can you please advise
any command by which all the logs created in this directory are... (2 Replies)
Discussion started by: punpun66
2 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)