On Tue, 2002-07-16 at 08:25, David T-G wrote: > Hi, all -- > > I like being able to use -i to set an in-place edit suffix like .bak for > the original copy of my files. Since I use the old MIT/Athena delete(1) > program, though, I'd like even more to be able to define a *prefix* for > the original file so that instead of file.bak I have .#file after an edit > (and then I can clean up the original 30 days later without any other > effort on my part, thanks to an expunge(1) looking for delete(1)d files). > Currently I know that I can 1) manually delete the .bak files or 2) go > back to the Camel book and manually implement the rename that is what -i > basically does for me but do it with a prefix. Does anyone have any > better ways? > > > TIA & HAND > > :-D > -- > David T-G * It's easier to fight for one's principles > (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie > (work) [EMAIL PROTECTED] > http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
<snip href="perldoc perlrun"> If the extension doesn't contain a "*", then it is appended to the end of the current filename as a suf fix. If the extension does contain one or more "*" characters, then each "*" is replaced with the cur rent filename. </snip> <example> #!/usr/bin/perl -pi.#* s/this/that/g; </example> -- Today is Boomtime the 51st day of Confusion in the YOLD 3168 Pzat! Missile Address: 33:48:3.521N 84:23:34.786W -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]