sitongia@hao.hao.ucar.edu (Leonard Sitongia) (03/13/90)
I tried to move all of my *.doc files to *.man so that I could use the man function on them. They all "disappeared!". Bummer. Try this in SKsh: $ touch bozo.ext # get the root of the filename $ bozo = $(extname -v bozo.ext) $ echo $bozo bozo # yep, got the root: bozo # now rename file with a new extension $ mv bozo.ext $bozo.newext On my system this produces a subdirectory called ".newext" containing a file called "bozo.ext". If you do a "echo $bozo.newext" you will see that there is an extra space in there: $ echo $bozo.newext bozo .newext Why is there a space after the rootname? All of my .doc files were moved into a subdirectory called ".man". ;-) -- -Leonard E. Sitongia System Manager (303) 497-1509 USPS Mail: High Altitude Observatory P.O. Box 3000 Boulder CO 80307 Internet: sitongia@hao.ucar.edu SPAN: NSFGW::"hao.ucar.edu!sitongia" [NSFGW=9580]