![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Renaming files | cedrichiu | Shell Programming and Scripting | 3 | 04-06-2007 01:35 AM |
| Renaming files | whatsup | Shell Programming and Scripting | 8 | 07-10-2006 02:47 PM |
| Copying Folders without some folders... ;-) | chimpu | UNIX for Dummies Questions & Answers | 5 | 04-26-2004 09:25 AM |
| Backing up Folders without some folders...;) | chimpu | Shell Programming and Scripting | 1 | 04-26-2004 07:02 AM |
| Renaming a file name | dbrundrett | Shell Programming and Scripting | 2 | 01-06-2004 06:36 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Renaming folders
Hello,
I'm new to unix and I have to rename all folder fron the current folder from a name like "xx - Name of the Folder" to "Name of the Folder - xx". xx is a number ... Can somebody, please, help? Thank you! |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Code:
find . -type d -print | sed -e "s;\./\([^/]*\).*;\1;" -e "s/^\([0-9]*\)\(.*\)/mv \"&\" \"\2\1\"/" | sh Last edited by anbu23; 02-14-2007 at 04:52 AM. |