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

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

file.otl-

and then renames that file to attrib.otl

0
 
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.
0
 
TintinCommented:
That's a very good point Superdave.
0
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.