Help related to Script to move files depending on config values

Hi All,

I am new to Unix scripting, I have requirement where I need to read the key value pair from config file.
Sample Config file:
Key(File Pattern) Value(File Directory location)
test /Users/Bkumar/Downloads/testdir
prod /Users/Bkumar/Downloads/proddir

Now I need to write a unix script(bash)
1) To read the key value pairs
2) After fetching key value pair , we need to search in the source(ex Source Dir) directory if there are any matches to the key, if yes then we need move the files to destination directory(present in value Ex testdir ) .

If any one have done this kind of script please do the needful.

Thanks,
Bhanu

Some hints

while read key value
do
  #  man find
done < config.file