The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Rename a file if I don't know its exact original name?
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Rename a file if I don't know its exact original name?
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
03-03-2006
bigearsbilly
Registered User
Join Date: Feb 2006
Location: Southern England
Posts: 102
Code:
for f in SCA????????_?????_IN.TXT;do echo mv $f ${f%%_*}_IN.TXT done
ksh
obviously remove the echo
bigearsbilly
View Public Profile
Find all posts by bigearsbilly