![]() |
|
|
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 files help | piltrafa | UNIX for Dummies Questions & Answers | 2 | 10-04-2007 10:47 AM |
| rename while doing ftp | Nagabhushan | Shell Programming and Scripting | 1 | 08-28-2007 06:54 AM |
| how to rename a file before and after a ftp? | forevercalz | Shell Programming and Scripting | 2 | 10-28-2005 10:19 AM |
| how can I rename the following=-^ | nj78 | UNIX for Dummies Questions & Answers | 5 | 09-30-2005 02:13 AM |
| rename using mv ? | simon2000 | UNIX for Dummies Questions & Answers | 2 | 03-19-2004 04:46 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
rename
hi,
im doin an assignment which requires you to build a shell script to do the MS DOS style equivilant (sp?) of the rename function. What i have to do is a loop which checks the following rules and output messages (same): Can't have anything after target Can't have more than one dot Can't have more than one asterisk Doesn't exist Must have a dot No target Targets consist of three parts: a dot, an asterisk and a string of filename characters. The dot is the middle one of the three. I have not started anything of yet as im stick on this first part and have little idea on how to do it. I an wondering if someone could give me a idea on how i would approach this. I have been told that a loop would be best. Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|