Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed with Solaris Unix Script

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top