![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rename many files | lmatlebyane | Shell Programming and Scripting | 9 | 04-30-2009 03:24 PM |
| Rename files | cv313x | Shell Programming and Scripting | 2 | 03-31-2009 06:55 AM |
| rename a lot of files again | ajp7701 | Shell Programming and Scripting | 11 | 03-31-2008 07:36 PM |
| rename files help | piltrafa | UNIX for Dummies Questions & Answers | 2 | 10-04-2007 09:47 AM |
| How to rename files? | CompuTelSystem | UNIX for Dummies Questions & Answers | 9 | 05-14-2002 03:28 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
i haven't tested this but it should work:
Code:
#!/bin/sh dir=/tmp for oldname in `find $tmp -type f`; do newname=`echo $oldname | tr ':' '-'` mv $oldname $newname done Last edited by edgarvm; 05-27-2009 at 09:47 AM.. Reason: indentation |
|
||||
|
thank you. Worked great..!!
|
| Sponsored Links | ||
|
|