For example, I have these files:
/Applications/Emacs.app/Contents/Resources/etc/images/custom/README
/Applications/Emacs.app/Contents/Resources/etc/images/ezimage/README
/Applications/Emacs.app/Contents/Resources/etc/images/gnus/README
/Applications/Emacs.app/Contents/Resources/etc/images/gud/README
/Applications/Emacs.app/Contents/Resources/etc/images/icons/README
I want to collect all of them and save them with different names in one directory, so they become something like this:
/dest/custom_README
/dest/ezimage_README
/dest/gnus_README
/dest/gud_README
/dest/icons_README
I know find
and xargs
might be useful to do this job but don't know how to do the rename
step according to its directory name.
Does anyone have ideas about this? Thanks!