Creating an array of input paths for Pig as input

You can give an array of path to pig as input.
e.g. a = LOAD '{/home/user/file1, /home/user/folder1/file2, etc..}'

This shell script will create this input path from all the files having prefix part in their file names present inside a directory of directory.