Search Results

Search: Posts Made By: veeruasu
3,368
Posted By veeruasu
hi...
hi https://www.unix.com/customavatars/avatar302155963_1.gif (https://www.unix.com/members/302155963.html) NickKnight (https://www.unix.com/members/302155963.html),
awk -F "|" '{if($1=="store.bal"...
3,368
Posted By veeruasu
How to read a two files, line by line in UNIX script and how to assign shell variable to awk ..?
Input are file and file1

file contains
store.bal
product.bal
category.bal
admin.bal

file1 contains
flip.store.bal...
2,825
Posted By veeruasu
Input are file and file1 file contains ...
Input are file and file1
file contains
store.bal
product.bal
category.bal
admin.bal
--------
file1 contains
flip.store.bal...
2,825
Posted By veeruasu
How to read a file, line by line in UNIX script?
#!/bin/bash
file1="yxd"
for file in `cat file3.txt`;
do
cat $file1 | awk '{split($1,dp,"."); lend=length(dp); if(lend>2) { dom=dp[lend-2]"."dp[lend-1]; split($2,ipl,","); for(i=1; i<=length(ipl);...
1,696
Posted By veeruasu
Output : both files are similiar then print first...
Output : both files are similiar then print first field along with PASS in file3 .
ex John -->PASS .
else print john-->FAIL, in 4th fourth field(mismatch).

---------- Post updated at 02:53 PM...
1,312
Posted By veeruasu
ex: file1 john|0.0|4|**:25;JP:50;UY:25 file2...
ex: file1 john|0.0|4|**:25;JP:50;UY:25
file2 john|0.0|4|JP:50;**:25;UY:25
in above two files i need to check compare fourth field , but they are interchaged.
1,696
Posted By veeruasu
Perl script to verify that a value is present in an array (list)
I have 2 files , i need compare both files field by field, and in the fourth field some value will be interchaged and some value will be **.
ex: file1 john|0.0|4|**:25;JP:50;UY:25
file2...
1,312
Posted By veeruasu
after comparision print mismatch field ... ...
after comparision print mismatch field ...

---------- Post updated at 03:41 PM ---------- Previous update was at 03:39 PM ----------

ex: file1 john|0.0|4|**:25;JP:50;UY:25
file2...
1,312
Posted By veeruasu
Compare to flat files using awk
compare to flat files using awk .but in 4th field contains non ordered substring. how to do that.
file1.txt
john|0.0|4|**:25;JP:50;UY:25

file2.txt
andy|0.0|4|JP:50;**:25;UY:25
3,288
Posted By veeruasu
Thanks Yoda ..... its working fine...
Thanks Yoda ..... its working fine...
3,288
Posted By veeruasu
its not working Red Hat Enterprise Linux Server...
its not working Red Hat Enterprise Linux Server release 5.6 (Tikanga).
same error
3,288
Posted By veeruasu
still its not working input : ...
still its not working
input :
john|622.5674603562933|8|br:1;cn:3;fr:1;jp:1;us:2
andy|0.0|12|**:3;br:1;ca:2;de:2;dz:1;fr:2;nl:1

awk -F"|"...
1,878
Posted By veeruasu
Need an awk script to calculate the percentage of value field and replace
Need an awk script to calculate the percentage of value field and replace
I have a input file called file.txt with the following content:
john|622.5674603562933|8|br:1;cn:3;fr:1;jp:1;us:2...
3,288
Posted By veeruasu
i had extracted data like below 3 1 2 2 ...
i had extracted data like below
3
1
2
2
1
2
1
awk 'NR==FNR{t+=$1;next}{printf("%.f %s\n", $1/t*100, $2)}' file file
25
8
17
17
8
17
8

---------- Post updated at 03:14 PM ----------...
3,288
Posted By veeruasu
Need an awk script to calculate the percentage of value field and replace
I have a input file called file.txt with the following content:
john|622.5674603562933|8|br:1;cn:3;fr:1;jp:1;us:2
andy|0.0|12|**:3;br:1;ca:2;de:2;dz:1;fr:2;nl:1
in fourth filed of input file,...
Showing results 1 to 15 of 15

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