The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Multiple Files Renaming with space
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
:
Multiple Files Renaming with space
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
09-21-2007
matrixmadhan
Technorati Master
Join Date: Mar 2005
Location: k-tier distributed caching
Posts: 2,736
A simpler way,
Code:
ls Test* | while read file do mv "$file" `echo "$file" |
sed
's/ //'` done
matrixmadhan
View Public Profile
Find all posts by matrixmadhan