I have a file named as market_20140101.csv.
I want the bash script to extract the date from the filename, that date should become directory and the "market_20140101.csv" file is copied inside that directory.
I have around 500 files of the same name with change in date. date is from 20140101 - 20160125.
I need separate date directory and that respective file to be copied inside that directory.