The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Renaming Files (Multiple files)
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Renaming Files (Multiple files)
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
01-05-2009
freizl
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
..
freizl
View Public Profile
Find all posts by freizl
Find freizl's past nominations received
Find freizl's present nominations given