Hi,
Can someone tell me how i can merge the lines that are wrapped.
My file has content somethig like this
Line1 -> xxxx bbbb ccc dddd bababab11
Line2 -> 2222 nnn cccc
Line 3-> yyyyy zzzz uuzuz ioouo oououou11
Line 4 -> 3333 pppp dddd
Line 5-> zzzz kjkj uuzuz ioouo oououou11
Line 6->... (1 Reply)
Hi All,
How can I eliminate the blank lines from a file.
For e.g.
File1 contains
ABCD
EFGH
ZZZZ
HJHH
KJKJ
IUYU
I need the file to be as follows....
ABCD
EFGH (4 Replies)
I need to convert a file i.e
cat list
1000:
1001:
1002:
to
cat wrappedfile 1000:1001:1002:
currently I am using a while loop, paste and mv command to achieve desired outcome.
touch wrappedfile
cat list | while read line ;do echo $line > /tmp/$line;paste /tmp/$line wrappedfile >... (7 Replies)
Hello,
I am about 3 weeks new to CGI/ Perl scripting and so far some concepts I can wrap my head around perfectly but others not so much.
I was wondering if I could get some help in making a script that will pull from a text file and put back into a form. I can make a script that takes input... (15 Replies)
I'm writing a wrapper script (in bash) that wraps another (bash) script. When calling the wrapped script, I need to pass all the received arguments/options to it. Is there a built in variable that holds all the options? I wrote a little while loop (see below) which works. But I wanted to know if... (1 Reply)
Hi,
I am trying to create a text file from data retrieved from a query.The data retrieved is having this character '^L' at regular intervals of the data.
How can i eliminate this, Please find below the sample data.
I tried sed -e "s/\^L//g" to convert it, but with no luck
^LCODE*SERIAL... (11 Replies)
Hi All,
Please help me how to remove the records from the file if it is having more number of fields than the required one, before loading into stage
Here is the sample records. File is space delimited one
chandu 1121324 CC ( 2 spaces)
chandu balu 434657 DD (3 spaces) -- failing due to... (10 Replies)
Hi,
I am writing an awk script and I have got stuck. I am trying to find a word that has 2 dollar signs in it but its failing. I have already tried to escape it with single and double back slash and also I have tried to use \044 in the search but even that doesnt work. can you please help me... (7 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)
Hi,
I would like to know how to remove lines which has the same pattern as the next line through sed/awk.
Stream 39 (wan stream 7)
Stream 40 (wan stream 8)
WINQ Counter 115955 1 1613
(BYTE) 11204787 163 ... (2 Replies)
Discussion started by: sarn_nat
2 Replies
LEARN ABOUT CENTOS
unwrapdiff
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)