Search Results

Search: Posts Made By: kaprus
2,831
Posted By kaprus
thanks for your support. Could U plz explain...
thanks for your support.
Could U plz explain the code.

Thanks
2,831
Posted By kaprus
Output generated by given code: awk -F, ' ...
Output generated by given code:

awk -F, '
> NR==FNR{a[$1$2];next}
> substr($1,1,6)$2 in a{print;s++;delete a[substr($1,1,6)$2]}
> END{print "Count="s}
> ' DATAFILE.txt CONFIG.txt
Count=
2,831
Posted By kaprus
I have to count the matches field from both...
I have to count the matches field from both files:
matching fields from 1st file are:

919030055000,1
919030055000,3
919030055000,7
919030155000,1
919030155000,3
919031055000,1...
2,831
Posted By kaprus
I have to count the matches field from both...
I have to count the matches field from both files:
matching fields from 1st file are:

919030055000,1
919031055000,8
919036055000,3
919040055000,7
919045123243,13

corresponded to 2nd file...
2,831
Posted By kaprus
compare second field
Hi,

I have two files, mentioning below
1st file:
919030055000,1
919030055000,3
919030055000,7
919030155000,1
919030155000,3
919031055000,1
919031055000,8
919031155000,1
919031155000,8...
5,067
Posted By kaprus
Hi, could U write the example in detail i.e...
Hi,
could U write the example in detail i.e Input file and desired output U want with performed operation.
1,649
Posted By kaprus
it starts with subsD,<String>,hlr. its fixed...
it starts with subsD,<String>,hlr.

its fixed pattern.
1,649
Posted By kaprus
hi, fields/column are not fixed, given...
hi,

fields/column are not fixed,
given code will not work properly.
suggest else.

Thanks
1,649
Posted By kaprus
how to remove mutilple enrty in a single line in unix
Hi,
Below is a single line output.

subsD,01 02 03 04 05 00 00 00 00 07 00 05,hlr,common,00000000 subsD,01 02 03 04 05 00 00 00 00 07 00...
1,664
Posted By kaprus
read sed command, it will help U.
read sed command, it will help U.
5,175
Posted By kaprus
Thanks for support.
Thanks for support.
5,175
Posted By kaprus
Sorry dear, given code is not working. I...
Sorry dear,
given code is not working.
I tried,below is the snapshot of Output is some like ???.

./working_script.sh: line 10: BEGIN{print...
5,175
Posted By kaprus
Hi, I am trying to do something like that ...
Hi,

I am trying to do something like that

FILE1=$1
FILE2=$2
FILE3=$3
awk -F, 'BEGIN{print "ID, Name, Address, remark , marks, age, amount, balance"}
FNR==1{next}...
5,175
Posted By kaprus
Hi, using give code, output is ID, Name,...
Hi,
using give code, output is

ID, Name, Address, remark , marks, age, amount, balance
001,AA,43,rrrr,43,66,55,555
002,FF,44,gg
003,43,77,44,444
ID, Name, Address, remark ,marks,age,...
5,175
Posted By kaprus
Hi Franklin52, I applied your given code,...
Hi Franklin52,

I applied your given code, but it gave different output :

cat file1
ID, Name, Address, remark
001,AA,43,rrrr
002,FF,44,gg

cat file2
ID,marks,age
001,43,66
003,43,77
...
5,175
Posted By kaprus
join command will work only on fixed field of...
join command will work only on fixed field of file(s).
if i have numbers of file in which field are not fix.
then what to do???

please describe in details.

Thanks
5,175
Posted By kaprus
suppose i have 3 file like file1, file2, file3 in...
suppose i have 3 file like file1, file2, file3 in which

file1 contains 10 number of fields(column wise) like
ID, Name, Address, remark etc.
001,AA,43,rrrr
002,FF,44,gg

file2 contains let...
5,175
Posted By kaprus
Firstly i genrate a file in which i have unique...
Firstly i genrate a file in which i have unique ID of each file let say Unique_ID.txt
After that on the basis of unique ID, i find the corresponding fields from 4 file and then paste it w.rt to ID....
5,175
Posted By kaprus
Help me Out in unix scripting
Hello every one, plz help me out. I m using 4 files in unix, like file1, file2, file3,file4 in which primary key is ID in column(field) of 4 files.
On the bases of ID, i want the corresponding field...
Showing results 1 to 19 of 19

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