Skip to main content
3 of 3
deleted 44 characters in body; edited tags
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265

renaming file with date to a different date in shell script

I have files in my home dir as

 member_net.2017-04-20.control
 member_elig_net.2017-04-20.control
 mdcr_contractr_net.2017-04-20.control

I want to rename the files to a different date like in the same dir as

 member_net.2017-04-21.control
 member_elig_net.2017-04-21.control
 mdcr_contractr_net.2017-04-21.control

These files are not of 0 bytes.