07-29-2006
Below is the correct version which works well as per your needs, I should have edited this post only instead of putting a new post, any ways, you can run the script and modify as per your needs.
Regards,
Tayyab
Last edited by tayyabq8; 07-30-2006 at 02:03 AM..
Reason: Code deleted, recursive function was missing
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Under the home directory, I want to search for all the *.xml files and move them all into another folder under home.
Is it possbile using a single find command .
Regards,
Chirayu Sutaria (6 Replies)
Discussion started by: chirayus
6 Replies
2. Shell Programming and Scripting
How can I copy all the files in a given directory except one.
cheers (7 Replies)
Discussion started by: spaceship
7 Replies
3. UNIX for Dummies Questions & Answers
hello
i would like to copy files from 1 location to a nother, but it has only to copy files which are newer or have a different filesize.
all has to be logged to a copy.log file (als skipped files should be in the log)
is this possible with the cp command (1 Reply)
Discussion started by: arnoldg
1 Replies
4. UNIX and Linux Applications
how i can copy all files " select all " in one step
t try command cp -t (2 Replies)
Discussion started by: walidfinder
2 Replies
5. UNIX for Dummies Questions & Answers
Hi Team,
I am unable to copy the files, when i run the below script, i am getting error as file not present, not sure what i am missing.
# File to be looked upon
File_Pattern='*.zip'
TMP_FILE=flagfile
Check=`find $Directorypath -name $File_Pattern -type f -newer $TMP_FILE -print |... (6 Replies)
Discussion started by: Naveen_5960
6 Replies
6. Solaris
Hello everyone. Need some help copying a filesystem. The situation is this: I have an oracle DB mounted on /u01 and need to copy it to /u02. /u01 is 500 Gb and /u02 is 300 Gb. The size used on /u01 is 187 Gb. This is running on solaris 9 and both filesystems are UFS.
I have tried to do it using:... (14 Replies)
Discussion started by: dragonov7
14 Replies
7. Shell Programming and Scripting
....... (2 Replies)
Discussion started by: pcbuilder
2 Replies
8. Red Hat
I have directory that has some billion file inside , i tried copy some files for specific date but it's always did not respond for long time and did not give any result.. i tried everything with find command and also with xargs..
even this command find . -mtime -2 -print | xargs ls -d did not... (2 Replies)
Discussion started by: before4
2 Replies
9. UNIX for Dummies Questions & Answers
Hi all, I am a bit of a beginner with shell scripting..
What I want to do is merge two drives, for example moving all data from X to Y.
If a file in X doesn't exist in Y, it will be moved there.
If a file in X also exists in Y, the most recently modified file will be moved to (or kept) in... (5 Replies)
Discussion started by: apocolapse
5 Replies
10. Shell Programming and Scripting
Hi
imagine that i have some data files like:
test.20150902
test.20150903
test.20150904
i would like to create one single file automatically (like cat test.20150902 test20150903 > output) in order to copy all files togheter with a time order.
Thanks!
Regards
Please use... (2 Replies)
Discussion started by: Board27
2 Replies
LEARN ABOUT REDHAT
editdiff
REDIFF(1) REDIFF(1)
NAME
rediff, editdiff - fix offsets and counts of a hand-edited diff
SYNOPSIS
rediff ORIGINAL EDITED
rediff EDITED
rediff {--help | --version}
editdiff FILE
editdiff {--help | --version}
DESCRIPTION
You can use rediff to correct a hand-edited unified diff. Take a copy of the diff you want to edit, and edit it without changing any off-
sets or counts (the lines that begin ``@@''). Then run rediff, telling it the name of the original diff file and the name of the one you
have edited, and it will output the edited diff file but with corrected offsets and counts.
A small script, editdiff, is provided for editing a diff file in-place.
The types of changes that are currently handled are:
o Modifying the text of any file content line (of course).
o Adding new line insertions or deletions.
o Adding, changing or removing context lines. Lines at the context horizon are dealt with by adjusting the offset and/or count.
o Adding a single hunk (@@-prefixed section).
o Removing multiple hunk (@@-prefixed sections).
Alternatively, if only one argument is provided, it is taken to be the edited file and the counts and offsets are adjusted as appropriate.
Some assumptions are made when used in this mode. See recountdiff(1) for more information.
OPTIONS
--help Display a short usage message.
--version
Display the version number of rediff.
SEE ALSO
interdiff(1), recountdiff(1)
AUTHOR
Tim Waugh <twaugh@redhat.com>.
patchutils 13 May 2002 REDIFF(1)