Quantcast
Viewing all articles
Browse latest Browse all 41

Answer by Daniele Santi for mv files with multiple `.` in the file name

mv is not the right tool.

You should use the rename command:

rename 's/\./_/' *.*.txt

The string 's/\./_/' means "substitute the first occurrence of a . with a _ in the folling file list".


Viewing all articles
Browse latest Browse all 41

Trending Articles