This is code for creating the index for the folder and also executing simple commands on commandline to query,delete and replace the files by running the script.