I have a requirement to move all the files from multiple subdirectories into a single directory with adding timestamp to it.
I am having the below directory structure,
Interface/Temp/GoodsRecipt/GR123/abc.csv, cad.csv Interface/Temp/GoodsRecipt/GR456/abc.csv, cad.csv
I want to move the CSV files from the random directories into a single directory and add up the timestamp to the files. The result should be like below,
Interface/Temp/GoodsRecipt/GRout/abc05082014.csv, cad05082014.csv, abc06032014.csv, cad06032014.csv
I need to write a shell script and run in independently for this operation. Any help on the shell script creation would be much appreciated.