Search Results

Search: Posts Made By: Naresh101
1,108
Posted By Naresh101
Thanks a lot.... I got the proper output..
Thanks a lot.... I got the proper output..
1,108
Posted By Naresh101
Thank you Mr.Rangarasan, But the above code...
Thank you Mr.Rangarasan,
But the above code lists the fields even if they have the same value in both fields...
i.e here since in both files "lang" is "eng" only, this lang should not be given in...
1,108
Posted By Naresh101
Compare files
Hi I have 2 files:
file1.txt
a.ID|1
a.name|ga
a.lang|eng
a.reg|north
a.ID|3
....file2.txt
a.ID|1
a.name|ju
a.lang|eng
a.reg|east
a.ID|2
....The expected o/p is
ID|field|old|new...
6,619
Posted By Naresh101
@Yoda Thanks for posting the code.... Its works...
@Yoda Thanks for posting the code.... Its works good..
But what if the no. of fields (columns) and their names are unknown!?
How to achieve a generalized script which compares 2 files according to...
6,619
Posted By Naresh101
Thank you @Yoda.... But I used the segment with...
Thank you @Yoda....
But I used the segment with awk in your other post in my code as below ... That worked fine too.. Thanks a lot


join -t"," -1 1 -2 1 -a1 file1.csv file2.csv | awk -F, ' BEGIN...
6,619
Posted By Naresh101
Its a small part in my intern project.... I m...
Its a small part in my intern project.... I m quiet new to unix shell scripting... so need the help...
6,619
Posted By Naresh101
Compare 2 csv files in ksh and o/p the difference in a new csv file
(say) I have 2 csv files - file1.csv & file2.csv as mentioned below:
file1.csv
ID,version,cost
1000,1,30
2000,2,40
3000,3,50
4000,4,60
...
22,383
Posted By Naresh101
Comparing 2 CSV files and sending the difference to a new csv file
(say) I have 2 csv files - file1.csv & file2.csv as mentioned below:

file1.csv
ID,version,cost
1000,1,30
2000,2,40
3000,3,50
4000,4,60

...
Showing results 1 to 8 of 8

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