I have a directory which contains multiple files. I need to rename these files.
This is how the file names looks like:
snap-file-name-1.txt
snap-file-name-2.txt
snap-file-name-3.txt
I need to remove "snap" and ".txt" from these files.
-file-name-1
-file-name-2
-file-name-3
How do I do that with mv
command?