I am trying to rename one file with one variable. Example: 2014.001.**.**.**.D890.E.m to IP.PMST..BHE.D.2014.001.My script is:#!/bin/bashcd /home/pintolcv/Downloadsfor jd in {001..366}domv 2014.$jd.*.*.D890.E.m IP.PMST..BHE.D.2014.$jd doneBut I always see this error:mv: cannot stat `2014.001.*.*.D890.E.m': No such file or directorymv: cannot stat `2014.002.*.*.D890.E.m': No such file or directorymv: cannot stat `2014.003.*.*.D890.E.m': No such file or directorymv: cannot stat `2014.004.*.*.D890.E.m': No such file or directorymv: cannot stat `2014.005.*.*.D890.E.m': No such file or directorymv: cannot stat `2014.006.*.*.D890.E.m': No such file or directorymv: cannot stat `2014.007.*.*.D890.E.m': No such file or directorymv: cannot stat `2014.008.*.*.D890.E.m': No such file or directory...... and so on!How can I get this working?
rename multiple files with one variable
rename;mv