Need some Help for file filteration and saving the output in other directory using grep....plz ...

Hi all........
Plss do help me.......in a big trouble... :wall::wall::wall:
I have 3 directories named as :1. /home/shuchi/source
2./home/shuchi/destination
3./home/shuchi/filter
now the problem is /home/shuchi/source has say 2 files with extension .txt as given below :
A.txt

Code:

  msisdn             | imsi | name | subscription | product | date | recharge type 09311424354 | 09488439820 | ekta | yes | VAS | 2012-12-07 | IVR 09128734473 | 83974738734 | priya | no | Non VAS | 2011-08-11 | SMS 09376536263 | 63473627632 | shubhra | yes | VAS | 2011-07-07 | WAP 09655423434 | 13312353343 | shubhi | no | non VAS | 2011-05-04 | SMS 09473874383 | 36267267372 | amita | yes | VAS | 2011-04-05 | IVR

B.txt

Code:

  msisdn             | imsi | name | subscription | product | date | recharge type 09311424354 | 09488439820 | ekta | yes | VAS | 2012-12-07 | IVR 09128734473 | 83974738734 | priya | no | Non VAS | 2011-08-11 | SMS 09376536263 | 63473627632 | shubhra | yes | VAS | 2011-07-07 | WAP 09302117719 | 13312353343 | shubhi | no | non VAS | 2011-05-04 | SMS 08295708671 | 36267267372 | amita | yes | VAS | 2011-04-05 | IVR

/home/shuchi/filter has one file as below :
msisdn
--------------

Code:
09311424354 09128734473 09487736472 09302117719 08295708671
now on the basis of file present in /home/shuchi/filter i need to have 2 subfiles with the same name as A.txt and B.txt in /home/dstst/destination folder as given below :
A.txt

Code:

  msisdn             | imsi | name | subscription | product | date | recharge type 09311424354 | 09488439820 | ekta | yes | VAS | 2012-12-07 | IVR 09128734473 | 83974738734 | priya | no | Non VAS | 2011-08-11 | SMS:o

B.txt

Code:

  msisdn             | imsi | name | subscription | product | date | recharge type 09302117719 | 13312353343 | shubhi | no | non VAS | 2011-05-04 | SMS 08295708671 | 36267267372 | amita | yes | VAS | 2011-04-05 | IVR

i have to write a script which will read files present in /home/shuchi/source one by one i.e. A.txt and B.txt and match them with file present in /home/shuchi/filter and on the basis of msisdn and store the result in /home/shuchi/destination directory.I have to use grep or fgrep as some crappy version of unix being used and awk and sed are not supported ............it would be a grttttttttt help...........:confused::(:confused::frowning:

~Priya...........