09-08-2009
I am not clear with the requirement.
what are the version number? are those which are mentioned at the end of the file names?
It will be better if you list the files from the above example which you want to copy in the new directory.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all
Is it possible to copy a structure of a directory only.
e.g.
I have a file with the following entries that is a result of a find :-
/dir1/dir2/file.dbf
/dir1/dir2/dir3/file1.dbf
/dir1/file.dbf
I want to copy these to a directory and keep the structure however starting at a new dir... (8 Replies)
Discussion started by: jhansrod
8 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I have a situation where I need to copy the files having the latest date.
For example I have a file by name bas100e1_jun05. I need to copy it to bas100e1. But when a file by name bas100e1_jul05 is put in the same directory the script should copy the file having the latest month which... (34 Replies)
Discussion started by: shashi_kiran_v
34 Replies
3. UNIX for Advanced & Expert Users
Hi,
I am trying to write a script that will move all the files from source directory structure(multiple levels might exist) to destination directory structure. If a sub folder is source doesnot exist in destination then I have to skip and goto next level. I also need to delete the files in... (4 Replies)
Discussion started by: srmadab
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I need to copy a set of directories along with all sub directories and files from one unix box to another. Any ideas?
cnfsed (4 Replies)
Discussion started by: Cnfsed
4 Replies
5. Shell Programming and Scripting
Dear Experts,
How can I solve this problem ?
I want to redirect with having the same directory structure as in my input.
for temp in `find ./CSV/ -name "*.v"`
do
fname = `basename $temp`
./script.sh $temp > ./out/$fname
done
But my problem here is all the... (3 Replies)
Discussion started by: user_prady
3 Replies
6. UNIX for Dummies Questions & Answers
ls -lrt | nawk -v D="$(date +'%b%e:'| sed 's/ //g')" 'D==$6$7":"{sub(".*"$9,$9);print}'
This picks only the latest files created based on the timestamp for that particular day..
how do i copy over the same files to a different location???? (1 Reply)
Discussion started by: win4luv
1 Replies
7. Shell Programming and Scripting
I am trying to figure out a way to script copying specific files from one dir structure to another.
I have a dir structure like this:
dira/author 1/book 1/file a.epub
/book 2/file b.epub
/author 2/book 1/file c.epub
/author 3/book 1/file d.epub
/book 2/file... (2 Replies)
Discussion started by: arcanas
2 Replies
8. Shell Programming and Scripting
In linux.. In a directory there are 3 files which I want to copy only the latest file (ls -ltr myfiles*.txt|tail -1) to other directory in perl?
Could anyone please help me with the code?
Regards,
J (1 Reply)
Discussion started by: scriptscript
1 Replies
9. Shell Programming and Scripting
I want to write a korn shell script to get the latest three versions for a file in the directory having lot of files with various versions (files with prefix as same but time stamp as suffix) and compress it and at the same time have to remove the remaining versions of the file (other than latest... (4 Replies)
Discussion started by: maheshbabu
4 Replies
10. Shell Programming and Scripting
Hi,
I need to write a script the has to copy the files from folders and subfolders to the same folder structure located in another location.
Ex:
mainfolder1
file1,file2,file3 subfolder1(file1,etc) subfolder2(file1,etc) to another folder location of same folder structure.
rsync is not... (7 Replies)
Discussion started by: Raji Perumal
7 Replies
LEARN ABOUT REDHAT
fastjar
FASTJAR(1) GNU FASTJAR(1)
NAME
fastjar - archive tool for Java archives
SYNOPSIS
fastjar -ctxu [OPTIONS] [jar-file] [manifest-file] [-C dir] files...
DESCRIPTION
"fastjar" is an implementation of Sun's jar utility that comes with the JDK, written entirely in C, and runs in a fraction of the time
while being feature compatible.
If any file is a directory then it is processed recursively. The manifest file name and the archive file name needs to be specified in the
same order the -m and -f flags are specified.
OPTIONS
Exactly one of the following actions must be specified:
-c Create new archive.
-t List table of contents for archive.
-x Extract named (or all) files from archive.
-u Update existing archive.
The following parameters are optional:
-@ Read the names of the files to add to the archive from stdin. This option is supported only in combination with -c or -u. Non
standard option added in the GCC version.
-C directory
Change to the directory and include the following file.
-E Prevent fastjar from reading the content of a directory when specifying one (and instead relying on the provided list of files to
populate the archive with regard to the directory entry). Non standard option added in the GCC version.
-M Do not create a manifest file for the entries.
-i Generate an index of the packages in this jar and its Class-Path.
-J All options starting with -J are ignored.
-0 Store only; use no ZIP compression.
-V
--version
Display version information.
-f archive
Specify archive file name.
-m manifest
Include manifest information from specified manifest file.
-v Generate verbose output on standard output.
Parameters of the form @option{@}FILE are considered to be names of files, and are expanded with the contents of the file.
All remaining options are considered to be names of files.
SEE ALSO
gcj(1), gij(1), grepjar(1) and the Info entry for gcj.
COPYRIGHT
Copyright (C) 2002, 2007, 2008 Matthias Klose
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any later version. A copy of the license is included in the man page
gfdl(7).
0.97 2008-10-16 FASTJAR(1)