11-10-2007
Did you mean ?
tar -cvf TARZIP.10 Nov09/ --remove-file1 file2 file3
Note:I have around 15-20k files /folder
Thanks and regards,
Gideon.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am a newbie to shell scripting. here is my objective:
1)The shell program should take 2 parameters - ie-> DestinationFolder, WebFolder
2)Destination folder contains few files that has to has be verified and deleted.
3)WebFolder is a folder containing a list of master files
4)It... (1 Reply)
Discussion started by: sandhyagupta
1 Replies
2. Shell Programming and Scripting
Hi guys, I'm trying to write a quick script to archive off some data once a week. So far I have got;
DATE=`date +%Y-%m-%d`
TARFILE=${DATE}.tar
for file in `find /usr/local/DATA/in -mtime +6`; do tar -czvf ${TARFILE} ${file}; done
The problem I have is it is going through the results... (2 Replies)
Discussion started by: JayC89
2 Replies
3. Shell Programming and Scripting
I Need to run a Unix Aix Shell Script should contains
1)Find all the folders in the directory /fss/fin.
2)Tar the Folders.
3)Move the Tar folders into another directory /fs/fi which in server .s11003232sz.net
4)When user requests untar the Folders and move it back to the orignal... (1 Reply)
Discussion started by: sreekumar
1 Replies
4. Shell Programming and Scripting
I've just finished writing a shell script that searches for a string recursively in all text files and replace them with another string. Now, all these files come from a location nested deep within some TAR files which are inside another mother TAR.
To make my script work, we had been UNTARing... (6 Replies)
Discussion started by: exchequer598
6 Replies
5. Shell Programming and Scripting
I would like to transfer all files ending with .log from /tmp and to /tmp/archive (using find )
The directory structure looks like :-
/tmp
a.log
b.log
c.log
/abcd
d.log
e.log
When I tried the following command , it movies all the log files... (8 Replies)
Discussion started by: frintocf
8 Replies
6. Shell Programming and Scripting
Hello everyone,
I am trying to tar 2 directories together in KSH.
tar -cvf temptarfile.tar scripts
tar -cvf temptarfile.tar scripts.2
I need all the files in scripts and scripts.2 to be in one tar file. (1 Reply)
Discussion started by: BrutalBryan
1 Replies
7. Shell Programming and Scripting
I want to move all files from one directory to another directory excluding today (sysdate files) on daily basis.
file name is in pattern file_2013031801, file_2013031802 etc (2 Replies)
Discussion started by: khattak
2 Replies
8. UNIX for Dummies Questions & Answers
I am just creating tar.gz file with comand tar -zcvf xyz.tar.gz /home/xyz/*
xyz folder contains thousands of files mostly .c, .cpp, etc..
I see that many times all the files are not zipped.
Many files(in hundreds) are abruptly left out.
What may be the reason for this and how to resolve... (10 Replies)
Discussion started by: rupeshkp728
10 Replies
9. Shell Programming and Scripting
Hey guys,
I have wrote the following script to apply a module named "trinity" on my files. (it takes two input files and spit a trinity.fasta as output)
#!/bin/bash -l
#SBATCH -p node
#SBATCH -A <projectID>
#SBATCH -n 16
#SBATCH -t 7-00:00:00
#SBATCH --mem=128GB
#SBATCH --mail-type=ALL... (1 Reply)
Discussion started by: @man
1 Replies
10. Shell Programming and Scripting
Hello,
First time poster. I am looking for a way to script or program the process of moving files from one folder to another, automatically, based on the count of files in the destination folder.
I was thinking a shell script would work, but am open to the suggestions of the experts... (6 Replies)
Discussion started by: comtech
6 Replies