![]() |
|
|
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 |
| Script to rename files | cpreovol | Shell Programming and Scripting | 3 | 04-01-2008 12:45 PM |
| Script to rename files | Dinkster | UNIX for Dummies Questions & Answers | 5 | 01-22-2008 08:55 AM |
| script to rename files with current date and copy it. | logic0 | UNIX for Dummies Questions & Answers | 6 | 05-01-2007 06:13 AM |
| copy and rename list of files | kinmak | UNIX for Dummies Questions & Answers | 7 | 02-27-2005 09:23 PM |
| Rename Files with a script ? | yoveln | OS X (Apple) | 1 | 02-08-2004 12:45 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
please help - script to list and rename
Hi Friend,
I have a small script to list all file FFAAAAABBBBB00001 and FFAAAAABBBBB00001.repaired (when I run another script, the orginal file will output another *.repaired file) in my unix directory, and reaname the output file FFAAAAABBBBB00001.repaired back to FFAAAABBBBB00001. However, it have some strange message below: mv: illegal option -- r mv: illegal option -- w mv: illegal option -- x mv: illegal option -- r The script is: echo Please input firstcodelist: read firstcodlist for filename in `ll FF$firstcodelist*` do mv $filename `echo $filename | cut -c 1-17` done can you help to modify or any other new good script for me? Thank you all!!! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|