I have 48 files that i want to rename.
current filenames are
12345.zip
12346.zip
etc
New name should be
acx001.zip
acx002.zip
etc
How can i write one line awk statement to do incrementation of numbers. I have following code so far.
ls * | awk '{print "mv "$1," acx001.dat"}' > tt.sh
i am doing above and then edition tt.sh to manually increment acx001 to acx048. Is there a way to automate this.
please help
Thanks
current filenames are
12345.zip
12346.zip
etc
New name should be
acx001.zip
acx002.zip
etc
How can i write one line awk statement to do incrementation of numbers. I have following code so far.
ls * | awk '{print "mv "$1," acx001.dat"}' > tt.sh
i am doing above and then edition tt.sh to manually increment acx001 to acx048. Is there a way to automate this.
please help
Thanks