#cli Articles


  • 2011-05-02
  • it

Rename files in Linux - mv

Hey! This is an awesome little trick I just learnt about: instead of doing mv file1.txt file1.txt.old you can do this mv file1.txt{,.old} and it will automagically add a .old at the end of the filename. This is called a brace expansion: http://tldp.org …