I'm new to linux shell scripting. I have a few input files that I have to parse one by one. So in my "work in progress" WIP folder I have one input file at a time. While one file is undergoing processing, I want a log file to be created in the LOG folder with the same name as that of input file but with the extension ".log".
Is there any advice on how I can create another file with the same name of a different file?
What I actually want to do is this: copy the filename and store it in a variable, then use the variable to create a
$variable.log file and write the log to it.