UNWRAPDIFF(1)UNWRAPDIFF(1)NAME
unwrapdiff - demangle word-wrapped patches
SYNOPSIS
unwrapdiff [-v] [file...]
unwrapdiff {--help | --version}
DESCRIPTION
unwrapdiff demangles patches that have been word-wrapped, in an attempt to make them useful.
The corrected diff is sent to standard output. Note that you will probably need to use the -l option when applying the patch, in order to
ignore any whitespace differences there may be.
OPTIONS -v Verbose operation. A list of lines that are modified in a way that might be wrong is sent to stderr.
--help Display a short usage message.
--version
Display the version number of unwrapdiff.
LIMITATIONS
Some heuristics are used to decide whether use a space to recombine a wrapped line, or just join them together. Currently this is done by
comparing with last three characters of a line with the first two characters of its continuation, and using a space of any of them are dif-
ferent.
The patch needs to have been valid before being word-wrapped.
The last line of a hunk is nearly always ambiguous. If the next line begins ``@@'', ``Index:'', ``diff'' or ``---'' then it is taken to be
complete; otherwise it is unwrapped using the next line.
AUTHOR
Tim Waugh <twaugh@redhat.com>.
patchutils 17 January 2003 UNWRAPDIFF(1)
Check Out this Related Man Page
UNWRAPDIFF(1) Man pages UNWRAPDIFF(1)NAME
unwrapdiff - demangle word-wrapped patches
SYNOPSIS
unwrapdiff [-v] [file...]
unwrapdiff {[--help] | [--version]}
DESCRIPTION
unwrapdiff demangles patches that have been word-wrapped, in an attempt to make them useful.
The corrected diff is sent to standard output. Note that you will probably need to use the -l option when applying the patch, in order to
ignore any whitespace differences there may be.
OPTIONS -v
Verbose operation. A list of lines that are modified in a way that might be wrong is sent to stderr.
--help
Display a short usage message.
--version
Display the version number of unwrapdiff.
LIMITATIONS
Some heuristics are used to decide whether use a space to recombine a wrapped line, or just join them together. Currently this is done by
comparing with last three characters of a line with the first two characters of its continuation, and using a space if any of them are
different.
The patch needs to have been valid before being word-wrapped.
The last line of a hunk is nearly always ambiguous. If the next line begins "@@", "Index: ", "diff " or "--- " then it is taken to be
complete; otherwise it is unwrapped using the next line.
AUTHOR
Tim Waugh <twaugh@redhat.com>
Package maintainer
patchutils 17 January 2003 UNWRAPDIFF(1)
Can some one help me in finding a "word" in a line ??
ex :
line : = "You may choose an icon for your message "
i want to search for the existance of the word "message"
thanks
sri (2 Replies)
Hi
I want to read a flat file and add a word/value at the end of each line in the file and store the output in a temporary file. How can i do this? Plz help me with this.
Regards,
Saurabh (6 Replies)
Hello,
I'm trying to move the last word of matching pattern to the begining of next line. Appreciate if anyone post the script.
From the below line I'm getting the last word, Note: this word also appears in many places in my file
#return the last word of line that contains ListenPort
sed... (4 Replies)
i have this line
my,name,is,john
stored in a file d.sh and i wish to print the line as string..but im getting word by word...have tried this.........
for in $(cat $d.sh);
do
echo $i
done
but this is giving me
my
name
is
john (6 Replies)
I have a file abc:
line 1
line 2
line 3
line 4
And I am successfully e-mailing the file, with this:
mail -s "contents of abc" jdoe@email.com <<EOF
cat abc
EOF
But the e-mail shows up looking like this:
subject: contents of abc
line 1 line 2 line 3 line 4
The carriage returns... (5 Replies)
Hello,
I am having trouble extracting a specific line from a file when the line number is known. My first attempt involved grep -n 'hi' (the word 'hi will always be there) to get the line number before the line that I actually want (line 4).
Extra Notes:
-I am working in a bash script.
-The... (7 Replies)
Hi All,
I want to remove last word from a line using Vi.
Do we have any vi command for that.
line : ss dd ff gg
i have to run some vi command which can delete gg from the line
Thanks,
Ravi Sadani (4 Replies)
How to replace null with space?
I want to make each line with 80 characters. If any line contains only 5 characters and remaining is null, then i want to make it as 80 characrets where 5 is original characters and remaining 75 characters will be null..
NULL can come in between the line,... (3 Replies)
Hi there.!
I'm trying to make a script that corrects wrong spelling. I want to use sed to replace wrong word with the correct one, but this must be made in a while loop that reads the wrong word from file (with read line) and the correct one from another file. I can't find a way to run sed like... (3 Replies)
I have a peculiar file with record format like given below. Each line is wrapped to next lines after certain number of characters. I want to concatenate all wrapped lines into 1.
Input:(wrapped after 10 columns)
This is li
ne1
This is li
ne2 and
this line
is too lo
ng
Shortline
... (8 Replies)
Hi,
I am looking for a solution to address following:
I have a file with several lines. If the line contains a specific word I would like to write the line to new file . Can someone please help me with this. So basically I am looking to print the file if it contains a specific word.
Thanks... (5 Replies)
I am trying to write a command on just one line, i.e seperated by ';' and '|' etc, that finds the number of characters in the longest word of a file, preferably using the 'tr' and 'wc' commands.
i no that wc shows the number of lines words and characters in a file but im not sure how to use it... (5 Replies)
Hi,
I have a line which has n number of words with separated by space.
I wanted to make each word as a separate line.
for example,
i have a file that has line like
i am a good boy
i want the output like,
i
am
a
good (8 Replies)
I have a file and when I match the word "initiators" in the first column I need to be able to print the rest of the columns in that row. This is fine for the most part but on occasion the "initiators" line gets wrapped to the next line. Here is a sample of the file.
caw-enabled ... (3 Replies)