Skip to content
WJunction - Webmaster Forum

Shell Script

Status
Not open for further replies.
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
 
Status
Not open for further replies.

About the author

filegrasper
Banned · Joined
1,925
Messages
777
Reactions
113
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom