Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 504
  • Last Modified:

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

what will above command do ?
0
aashee
Asked:
aashee
  • 2
2 Solutions
 
TintinCommented:
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
 
SuperdaveCommented:
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

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now