Search Results

Search: Posts Made By: dunstonrocks
27,104
Posted By dunstonrocks
Also the data for each field would be split...
Also the data for each field would be split across multiple lines. So your solution of print;getline; won't work. There is no way of knowing how many lines the data would span.
27,104
Posted By dunstonrocks
No, I don't know for which record I would need to...
No, I don't know for which record I would need to insert the missing field.

I know the order of fields in a record.
So if any field is missing in a record, insert it at an appropriate place in...
25,878
Posted By dunstonrocks
I have a variant of the same question. I have...
I have a variant of the same question. I have been searching across number of threads, but it has not been covered, apparently.

Any input and explanation of the same would be helpful.
Sample...
27,104
Posted By dunstonrocks
I am also trying to achieve this output, but I...
I am also trying to achieve this output, but I have failed with various sed solutions that I have tried.
-------------------------
SAMPLE INPUT
-------------------------
Name: ABCD
Address: ABCD...
27,104
Posted By dunstonrocks
cfajohnson, your solution removed all the blank...
cfajohnson, your solution removed all the blank lines......
summer_cherry: I tried playing around with your solution. It came closest to what I am looking for, but I guess my requirements are a...
27,104
Posted By dunstonrocks
sed / awk to concatenate lines until blank line
Sample input (line feed indicated by [LF])
---------------
The red fox jumped [LF]
over the brown fence of the [LF]
red hous [LF]
[LF]
[LF]
[LF]
He then went into the[LF]
orchard[LF]
[LF]
...
5,984
Posted By dunstonrocks
SED/ AWK to do selective insert
I would appreciate if any one could give a handy one-liner in sed/awk to insert a line between two lines if and only if a condition is NOT fulfilled

sample input record:
*field* 1
*field* 2...
5,984
Posted By dunstonrocks
Sample Input and expected output
Here's the sample input data. There are 2 records delimited by *RECORD*.
I want to extract data in the *FIELD* <fieldName>
...
5,984
Posted By dunstonrocks
sed/awk script selective insert between lines
Hi
I have a file in the foll. format
*RECORD*
*FIELD NO*
.......
.......
*FIELD TX*
Data
*FIELD AV*
Data
*FIELD RF*


*RECORD*
*FIELD NO*
.......
.......
*FIELD TX*
Data
*FIELD RF*
1,977
Posted By dunstonrocks
sed selective data parsing
i have file in the following format
*RECORD*
*FIELD NO*
123456
*FIELD TX*
this is a sample entry
*FIELD SA*
See Also
*FIELD RF*
References
*FIELD CS*
Clinical Symptoms
*FIELD AV*
Allelic...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 03:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy