I'm trying to offset %W by 4 weeks and I'm unable to get it done. Can someone help me please? TY
Code:
#!/usr/bin/perl
use POSIX qw(strftime);
our $today = strftime("09%m%%W%d", localtime);
foreach my $file (<AC*.lkp.z>) {
rename ($file, "AC$today.lkp");
last; # so we only rename 1 file