pls help.. (sh scripting)
I have 3 files, file1 & file2 both have thousands of records of mobile numbers, while updatefile.txt is for the output. what i want to do is to compare the mobile field of file1 to file2, if the mobile number in file1 have been activated then the result appends to updatefile.txt while if the number is not yet activated then it will do nothing and will not displayed in updatefile.txt. (I have done similar to this, but my work needs to input one mobile number each time and then output result in updatefile.txt but since it has thousands of records i think my recent work is not applicable). I hope you can help me. thanks in advance!!
i have 3 files --> file1.txt and file2.txtupdatefile.txt
file1.txt
[HTML]
Seq.No SERIAL# mobile Box Batch Area
1 5512 09063924944 123 11 Laguna
2 8716 09063944249 123 11 Ohayo
.
.
.
(thousands of records)
[/HTML]
file2.txt
[HTML]
mobile activated_date
09063924944 20080615
09256458654 20080417
.
.
(thousands of records)
[/HTML]
updatefile.txt
[HTML]
mobile activated_date
09063924944 20080615
.
.
.
(displayed other activated mobile nos.) [/HTML]