I have a bash script that accepts file names that end with .in
, for example a1.in
a2.in
, and I want to take that argument and extract the a1
and add .out
to it, how do I do that?
I know accepting an argument is $1
- but how do I extract the a1
?