Guest_imported
New member
- Jan 1, 1970
- 0
Hi guys do I need your help,
I am working on Solaris and I am trying to rename a file using $1 as the old prefix and $2 as the new prefix, with varying extensions of various lengths after the prefix. The files are in one directory and need to be copied/moved to another directory with the new prefix. I just cant seem to get a grip on this.
eg. <program name> old new
files could be listed as old123,old.old,old222.cnn to be moved/copied to new123,new.old,new222.cnn.
If anyone can help I would be greatful.
Cheers Sanjiyian
I am working on Solaris and I am trying to rename a file using $1 as the old prefix and $2 as the new prefix, with varying extensions of various lengths after the prefix. The files are in one directory and need to be copied/moved to another directory with the new prefix. I just cant seem to get a grip on this.
eg. <program name> old new
files could be listed as old123,old.old,old222.cnn to be moved/copied to new123,new.old,new222.cnn.
If anyone can help I would be greatful.
Cheers Sanjiyian