REDIFF(1) Man pages 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
offsets 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>
Package maintainer
patchutils 13 May 2002 REDIFF(1)
Check Out this Related Man Page
REDIFF(1) Man pages 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
offsets 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>
Package maintainer
patchutils 13 May 2002 REDIFF(1)
Hi
Do you know where I can find any utility that counts lines of code in a C program, accurately?
The ones that count the semicolons does not give correct results.
Thanx Andonis Matsakas (1 Reply)
Hi all,
Following is the code for sending mail with attachment
#! /bin/ksh
SUBJ="Send mail from Unix PHDCAP12 "
TO=tmp@rediff.com
CC=tmp1@rediff.com
(
cat << !
To : ${TO}
Subject : ${SUBJ}
Cc : ${CC}
!
cat << !
HOPE THIS WORKS Test123
This sample E-mail message with the Unix... (1 Reply)
I'm writing a script which word counts the number of lines in two files. If one file is bigger than the other I'd like to edit one of the files to delete some lines to make both the same. It does not matter where in the file the lines are deleted from. It's expected that this will be ran from... (3 Replies)
I have a file which looks like
AA BB CC DD EE FF GG HH KK
AA BB GG HH KK FF CC DD EE
AA BB CC DD EE UU VV XX ZZ
AA BB VV XX ZZ UU CC DD EE
....
I want the script to give me only one line based on duplicate contents:
AA BB CC DD EE FF GG HH KK
AA BB CC DD EE UU VV XX ZZ (7 Replies)
Hi,
I have a file as given below $cat int_check
239|adf123@yahoo.com|999e
23e|get@rediff.com|987
233|get@rediff.com|987
I am running the command as given to find whether field 1 and 3 have proper integer values or not.
awk -F'|' 'int($1)!=$1 || int($3)!=$3' int_check... (7 Replies)
Ok i have a script that goes into the last 3 files, grabs a value from that file which is a date, counts the number of results of that date.
So this is the output:
FILED001.20110407.175709.086912
49995 04-07T12
4 04-07T07
1 04-07T17
FILED001.20110407.180111.086913
50000 04-07T12
... (5 Replies)
Hi All,
I am trying to filter out a txt file containing 2 columns. Which has got website name and response time as below.
Website_name response_time
yahoo 22
google 21
yahoo 34
rediff 45
google 43
rediff 31
I want filter the above file with unique website names which has got highest... (5 Replies)
Hello,
I have to a add 2 lines to /etc/sudoers file under this section below, can someone please suggest script to add these two lines when execute this remotely on to a multiple servers.
before
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
After
## Allow root... (2 Replies)
Hi All,
I am having a huge file file. I need to cut the below column and do the below calculation
I did the below command and able to do on full databased no on the individual based any help on doing each row by row
cut -c 52-56 myfile | awk '{total = total + $1}END{print total}'... (7 Replies)