I need a script that replicate one file in to seven files.
If the file is nol_idv_mUS_d20140131_f20140206_132915.tab
It should be copied as
nol_idv_mUS_d20140131_f20140206_132915.tab
nol_idv_mUS_d20140201_f20140206_132915.tab
nol_idv_mUS_d20140202_f20140206_132915.tab
nol_idv_mUS_d20140203_f20140206_132915.tab
nol_idv_mUS_d20140204_f20140206_132915.tab
nol_idv_mUS_d20140205_f20140206_132915.tab
nol_idv_mUS_d20140206_f20140206_132915.tab
the file will be for a week. I have to copy that file as daily file . So am channging a single file to seven files.
d20140131 is important.
this is the date indicator.
if its feb, it should end in 28 feb and continue in 01 Mar.
also,
the same process I should follow for the below format file
nol_idv_mUS_d20140206_f20140210_073039_cts.txt
If the file is nol_idv_mUS_d20140131_f20140206_132915.tab
It should be copied as
nol_idv_mUS_d20140131_f20140206_132915.tab
nol_idv_mUS_d20140201_f20140206_132915.tab
nol_idv_mUS_d20140202_f20140206_132915.tab
nol_idv_mUS_d20140203_f20140206_132915.tab
nol_idv_mUS_d20140204_f20140206_132915.tab
nol_idv_mUS_d20140205_f20140206_132915.tab
nol_idv_mUS_d20140206_f20140206_132915.tab
the file will be for a week. I have to copy that file as daily file . So am channging a single file to seven files.
d20140131 is important.
this is the date indicator.
if its feb, it should end in 28 feb and continue in 01 Mar.
also,
the same process I should follow for the below format file
nol_idv_mUS_d20140206_f20140210_073039_cts.txt