I need to create a file rename script to run at a particular time. Part of the script must rename all files in the current directory that have *.let.* extension.
For example I may have
letter1.let.rdr
form3.let.bib
sqloutput.let.tlc
and I want to rename them to:
z_letter1.let.mon
z_form3.let.mon
z_sqloutput.let.mon
where 'mon' is an abreivieation on the day of the week. I already know how to get this variable and its defined as $dayofweek.
Is it possible to do a mv, that specifies all files of pattern *.let.* and saves them as *.let.$dayofweek in a different directory?
For example I may have
letter1.let.rdr
form3.let.bib
sqloutput.let.tlc
and I want to rename them to:
z_letter1.let.mon
z_form3.let.mon
z_sqloutput.let.mon
where 'mon' is an abreivieation on the day of the week. I already know how to get this variable and its defined as $dayofweek.
Is it possible to do a mv, that specifies all files of pattern *.let.* and saves them as *.let.$dayofweek in a different directory?