Search Results

Search: Posts Made By: velraj9
1,505
Posted By velraj9
Lets say with the example I have file1: This...
Lets say with the example I have file1:

This is file1 contents:

include "~$XFR/conv.xfr";

/*C1_T0*/
out :: conv_c1_t0(in) =
begin
out.field1 ::decimal_lpad(in..efgh);
out.country2 ::...
1,505
Posted By velraj9
thanks!! but this awk 'NR == FNR {T[$1] =...
thanks!!

but this
awk 'NR == FNR {T[$1] = $0; next} $1 in T {$0 = T[$1]} 1' RS= ORS="\n\n" file2 file1

is not working in different scenario if the file has more than 500 lines.

Could you...
1,505
Posted By velraj9
I tried using sed '/record_2/r file2' file1 but...
I tried using sed '/record_2/r file2' file1 but it didn't work ... i'm trying to do this unix


Please use CODE tags as required by forum rules!
1,505
Posted By velraj9
Replacing match lines from one file with another file
Please help me in this scenario

i have two text files as below

file1.txt

record_1
conversion of a file;
code change;
data types;
lenght;
end;

record_2
field name;
string;
new...
Showing results 1 to 4 of 4

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