renaming with variable at end

Started by j99mac, October 29, 2021, 02:25:37 PM

Previous topic - Next topic

j99mac

I am trying to add a variable at the end of my file when renaming.
This is what I am adding at the end of my command
_s_'ts'.%e'

when I run it nothing happens and the files do not get renamed.
The variable is $ts. where the user enters input


Phil Harvey

What is your full command?  What O/S are you running?  How are you running the command (from what shell or what type of script or program)?

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).