I need to convert a batch file to a shell file to run it on Ubuntu. I'm new with bash scripting so would you please help me with a piece of the script?
My batch code is :
::Version detector
set Sverion=%~dp0\*.jar
FOR /f %%i IN ("%Sverion%") DO (
set SOver=%%~ni
)
Would you please explain what set Sverion=%~dp0\*.jar
means and how I can convert it to shell?
Thank you, Diana