find . -name "*.otl-" -exec mv \{} attrib.otl \;

what will above command do ?
Who is Participating?
TintinConnect With a Mentor Commented:
It will find any file from your current directory downwards that end in .otl- , eg:


and then renames that file to attrib.otl

SuperdaveConnect With a Mentor Commented:
Hopefully attrib.otl is a subdirectory, in which case it will move those files into that subdirectory.  Otherwise it would rename everything to one filename and it'd delete all but the last one it finds.
That's a very good point Superdave.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.