The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 01-05-2009
freizl freizl is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 3
Assuming the "ABC20090102" string is fixed length.
And I'm using sh shell.


Code:
ls -1 *.txt | awk '{print "mv", $1, substr($1,12) }' | sh


Last edited by freizl; 01-05-2009 at 04:55 AM..