I had allot of help with the below script, and its been a long time since i've done anything with shell scripts so I am having some trouble.
I am trying to zip the trace folder after it is copied and dated but i'm unsure of how to tell it to zip this new folder without knowing what it will be named.
The script works fine as it is now but when it goes to remove the oldest backup it takes forever due to all the files and directories within the trace folder.
Hi Friends,
I'm doing on script which finds all the files with time stamp and makes them tar and zip, based on their respective month&year. for instance "mar-2004.tar.zip" will contain all the files which was created/accessed/modified on mar-2004. like this the entire filesystem should be taken... (1 Reply)
I'm running an sh shell that is unzipping some zip files that have a directory structure on them.
Is there a way I can find the top level directory in the zip file and assign that to a variable?
mike (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)
my first question is how to zip the entire directory contents.
second question is can we unzip the same file through windows environment.
please help i need to complete it by EOD (3 Replies)
Hi,
Im facing a problem that im stucked,
I have the following structure:
thales@pereirtc-vbox:/home/VfARM$ ls
code config doc lib manifest.bak manifest.rel manifest.v3 ns pub
if i try to execute zip -q -o arm.zip VfARM/* it will create a zip file with the folder VfARM.... (2 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 was trying to zip some file in a directory using the below command.
find /dir1/dir2/ -name "asdf*.txt" -print | zip -m /dir1/dir2/dir3/asd_Date.zip -@
Its getting zipped.But when I am trying to unzip,
Its getting unzipped with full directory structure.
Is there any command... (1 Reply)
Hi Team,
I'm new to unix and i have a requirement to copy or move files from one directory to another based on current date mentioned in the .zip file name. Note that i need to copy only the recent zip file. please help me with the code
i tried the code as:
#! /usr/bin/sh
find... (3 Replies)