Zip files inside the directory, but not the directory itself
Hi,
Im facing a problem that im stucked,
I have the following structure:
if i try to execute
it will create a zip file with the folder VfARM. What i want to do ( or at least im trying... ) is to create a zip file only with the files inside the folder, but not the folder.
Anyone Know if is possible?
Thanks !
Last edited by pludi; 07-19-2010 at 02:43 PM..
Reason: code tags, please...
I need to zip all the files within a directory on a daily basis and store them as a zip file within that directory with the date in its naming convention
I have file extentions .log .lst and .out's within that directory
How do i do this task
zip -mqj mydir/allzip$YYMMDDDD.zip mydir/*.*
... (5 Replies)
I have two files in a directory:
xxxx.txt
xxxx.csv
I need to zip both files up but the command I am doing below is only zipping xxx.txt file????:
cd ../$CUSTOMER_DIRECTORY
zip -q ${name}${FILE_OUT_NAME}.zip ls -lrt *.csv *.txt
can anyone help?:confused: (3 Replies)
help trying to figure out a batch shell script to zip each file in a directory into its own zip file
using this code but it does not work
tryed this also
nothing seems to work , just ends without zipping any files
i have over 3000 files i need to zip up individualy
... (7 Replies)
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)
Hi,
need to zip all files in a directory and move to another directory after the zip..
i am using this one but didnt help me...
zip -r my_proj_`date +%Y%m%d%H%MS`.zip /path/my_proj
mv in_proj_`date +%Y%m%d%H%M%S`.zip /path/source/
i am trying to zip all the files in my_proj... (0 Replies)
Hi,
I have used the command
cat * | grep -r <<String>> *
It returns:
cat : JAN : is directory
***********************
*********************
My directory structure:
log
- JAN
-catalina.out
-FEB
-catalina.out
-MARCH
... (11 Replies)
Hi Folks,
There is a job which generates a .zip files every day at /usr/app/generated directory , now please advise for the script that will delete this zip files permanently.but while deleting it should make sure that it will not delete the last two days recently generated zip files and this... (1 Reply)
I receive multiple zipped directories with files in them, so the .zip name is the name of the directory containing the files.
so i have used a simple loop to unzip all of them but when unzipped i have folders/directories, i wanted to strip these directories and remain with the actual files from... (1 Reply)
Hii,
Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories.
Eg.
file1: test1.log
file2: test2.log
file3 test.zip
After running the script
file1: string_test1.log
file2: string_test2.log
file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
LEARN ABOUT DEBIAN
debian::javahelper::manifest
Debian::Javahelper::Manifest(3) Javahelper Debian::Javahelper::Manifest(3)NAME
Debian::Javahelper::Manifest - Javahelper representation of a Jar Manifest
SYNOPSIS
use Debian::Javahelper::Java;
my $manifest = ...;
my $main_sec = $manifest->get_section(MAIN_SECTION);
# Create if it does not exist.
my $file_sec = $manifest->get_section("java/lang/Object.class", 1);
DESCRIPTION
This module is used to represent a Java Manifest.
Constants
MAIN_SECTION
A constant denoting the main section of the manifest.
Exported by default.
Methods
Debian::Javahelper::Manifest->new()
Creates a new manifest. It will only contain the main section with the Manifest-Version attribute.
$manifest->get_section($name[, $create])
Returns the section denoted by $name. If this section does not exist, then it will either return undef or (if $create is a truth-value)
create a new empty section with that name.
Use the MAIN_SECTION constant to access the main section of the manifest.
$manifest->get_sections()
Returns a list of all sections in $manifest. The main section will always be the first in the list, but the remaining sections can come
in any order (and this order can change in later invocations).
Modifying the list will not change which sections are present in $manifest, but modifying a section in this list will also update the
section in the manifest.
$manifest->merge($other)
Merge all entries in $other into $manifest. All sections in $other will be added to $manifest if they are not already present.
If an attribute in a given section is only present in one of the two manifests, then that attribute and its value will be in $manifest
after merge returns.
If the attribute in a given section is present in both manifests, then the value from $other will be used.
This can be used to make a deep copy a manifest:
my $copy = Debian::Javahelper::Manifest->new();
$copy->merge($orig);
SEE ALSO Debian::Javahelper::Java(3) - had parse/write methods for manifests. Debian::Javahelper::ManifestSection(3) - for how sections are
handled.
AUTHOR
Niels Thykier <niels@thykier.net>
COPYRIGHT AND LICENSE
Copyright 2010 by Niels Thykier
This module is free software; you may redistribute it and/or modify it under the terms of GNU GPL 2.
0.43 2011-02-17 Debian::Javahelper::Manifest(3)