The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Renaming files
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
:
Renaming files
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
01-06-2008
Smiling Dragon
Disorganised User
Join Date: Nov 2007
Location: New Zealand
Posts: 742
Quote:
Originally Posted by
mehmet_demirez
extending previous solution for subfolders:
for file in `find .`
do
mv $file `echo $file |
sed
's/:/_/g'`
done
I'd suggest adding a '-type f' to the find command to to avoid it matching directories too?
Smiling Dragon
View Public Profile
Find all posts by Smiling Dragon