Morning Sluggers

I am having trouble with something simple which I am sure is easy.  I just
want to rename all the files in a directory from say their existing name to
p-existingname.  e.g.  mv p1.fmt pp1.fmt but for all the files in a
directory.

mv wont do it so I thought use find with -exec.  However, {} in -exec gives
a full path name whichis fine for say adding .old to the end of the file
names but not manipulating the beginning.

I am sure my brain has just switched off but I couldn't solve it.  Any
suggestions gratefully received.


regards
Steven


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to