I am trying to use the 'rename' terminal command and need help.
I have 3 files in a folder: Class.txt Agenda.txt Notes.txt
I want to RENAME the 3 files, automatically, to filenames without the ".txt".
In a terminal (on FossaPUP64/Slacko64), I do the following:
Code: Select all
# cd folder
# ls
Agenda.txt Class.txt Notes.txt
# rename 's/.txt//' *
# ls
Agenda.txt Class.txt Notes.txt
The filenames remain the same no matter the rename operator I use.
Can anyone guide me to correct use of the rename command, please?