I have many files like
xyz_123_foo.ext for which I would like to add
-bar to the filenames at the end to result in
xyz_123_foo-bar.ext. I tried:
rename . -bar. xyz_*
which resulted in:
rename: invalid option -- 'b'
followed by the usage text. I then tried variations with
"-bar" to no avail.
How can I get
rename to accept
- as part of the replacement string?
Or would another command be more efficient or appropriate?
My shell is bash and I am using the
util-linux on SuSe Linux SLE12.