<quote who="[EMAIL PROTECTED]">
> 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.
basename and dirname are good for this. Check them out with man. :)
- Jeff
--
"What's up with that word though... it's like something you did to
frogs in grammar school." - Ani DiFranco on bisexuality
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug