![]() |
|
|
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 04:24 PM |
| Rename files | cv313x | Shell Programming and Scripting | 2 | 03-31-2009 07:55 AM |
| rename a lot of files again | ajp7701 | Shell Programming and Scripting | 11 | 03-31-2008 08:36 PM |
| rename files help | piltrafa | UNIX for Dummies Questions & Answers | 2 | 10-04-2007 10:47 AM |
| How to rename files? | CompuTelSystem | UNIX for Dummies Questions & Answers | 9 | 05-14-2002 04: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 10:47 AM.. Reason: indentation |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|