
Tempus
New User
Aug 26, 2002, 10:39 AM
Post #1 of 5
(1428 views)
|
|
Filename manipulation...
|
Can't Post
|
|
Hi, forgive me for requesting help for such simple stuff, but we do all start somewhere, eh? Given that I've a filename ABCDEF.GHI, but don't know what letter A is or what letter G is, how do I easily replace both or either at my whim? For example, I want to take filename ABCDEF.GHI and rename it ~BCDEF.&HI for file locking purposes, and then once I've processed the associated file, I want to rename it back to ABCDEF.GHI. I'm able to do this with substr, but is there a more elegant way to easily do this with s// or m//??? Thanks.
|