Skip to main content
3 of 4
added 7 characters in body
Stéphane Chazelas
  • 584.8k
  • 96
  • 1.1k
  • 1.7k

Try this :

rename -n 's/\.\./-/' ./*

The . character in , means any character, so it matches everything!

Remove -n when you are satisfied with your tests

Gilles Quénot
  • 36.7k
  • 7
  • 74
  • 97