support to multiple files in the input directory
added sh script