How does the rename command really work?
- Inicie sesión ou rexístrese para enviar comentarios
According to rename's manual page:
"For example, to rename all files matching "*.bak" to strip the
extension, you might say
rename 's/\e.bak$//' *.bak"
So if I want to rename several files matching "*Unknown*" to replace Unknown with Known it would be like this rename 's/\eUnknown$/Known/' *Unknown*
?
This doesn't seem to work
You were close. This correct line is
$ rename 's/Unknown/Known/' *Unknown*
Indeed it is. Indeed it is.
I can't grasp how this solution slipped me.
Big thanks man, big thanks!
- Inicie sesión ou rexístrese para enviar comentarios