Search Results

Search: Posts Made By: PRAMOD 96
10,783
Posted By PRAMOD 96
Thank you Ridic for your update. I will remember...
Thank you Ridic for your update. I will remember your quotes.
And rounding result value code also worked. I liked "Teach me to do it myself" thing and will do the same in future whenever needed.
...
10,783
Posted By PRAMOD 96
Hi Rudic, Thanks for your update on this....
Hi Rudic,

Thanks for your update on this. But it is not working for my case. And one more thing I have not got your code

awk 'NR == FNR {SUM[$3]+=$7+$9; next} {sub (FS $8 FS, FS sprintf...
10,783
Posted By PRAMOD 96
Here is a new example to explain in detail- new...
Here is a new example to explain in detail-
new Input.dat will have content like

RRD 0Z91YUn000000Lk 9000100001 103020151117 STMT151117155527001 0000 2 000000 000004
RRD ...
10,783
Posted By PRAMOD 96
Your calculations seem to assume that there will...
Your calculations seem to assume that there will always be exactly two lines with a given 3rd field value. Are these pairs of lines always adjacent (as in your sample input and output)? Can there be...
10,783
Posted By PRAMOD 96
#!/bin/sh ...
#!/bin/sh
JOBFOLDER=/opt/hpx/exstream/StatementAppA/inputs/POC/testSort
input_file=$JOBFOLDER/Input.dat
count_output_file=$JOBFOLDER/Count_output.dat...
10,783
Posted By PRAMOD 96
File updation on matching key
I have input file like Input.dat with below content
RRD 0Z91YUn000000Lk 9000100001 103020151117 STMT151117155527001 0000 2 000000 000004
RRD 0Z91YUn00000ysj 9000100001...
3,282
Posted By PRAMOD 96
Hi .. I want to use |اق| this string as a...
Hi .. I want to use |اق| this string as a delimiter in awk command.

How can I use |اق| as a delimiter in awk command ?
3,282
Posted By PRAMOD 96
Yes .. It worked thank you ..
Yes .. It worked thank you ..
3,282
Posted By PRAMOD 96
update file1 using file2 in awk
Hi all,
I have file a.dat with content
0,ID,,
1,001,2015060,UB0085000,Key2,abc,xyz
1,338,2015103,UB0085000,Key1,abc,xyz
1,338,2015103,UB0085000,Key5,abc,xyz...
3,282
Posted By PRAMOD 96
Yes .. Its working ..!! :) Thank you ... Can you...
Yes .. Its working ..!! :) Thank you ... Can you please explain the logic ?
3,282
Posted By PRAMOD 96
Yes I want to replace 3 fields of file...
Yes I want to replace 3 fields of file a.dat(7th,8th and 9th) which will be empty initially.
Can you please explain the code for this scenario ?
3,282
Posted By PRAMOD 96
awk 'NR==FNR{A[$2]=$1; B[$2]=$3; next} {$3=A[$1];...
awk 'NR==FNR{A[$2]=$1; B[$2]=$3; next} {$3=A[$1]; $4=B[$1]}1' FS=, OFS=, a.dat b.dat
3,282
Posted By PRAMOD 96
I am using awk to resolve this but not able to...
I am using awk to resolve this but not able to match the column value from both the files.

If you have any idea please share !
3,282
Posted By PRAMOD 96
How to compare two columns in two files?
Hi All,

I have a.dat file with content
1,338,30253395122015103,2015103,UB0085000,STMT151117055527002,,,
1,338,30253395122015103,2015103,UB0085000,STMT151117055527001,,,

and b.dat having...
Showing results 1 to 14 of 14

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