To get the log filename: $0 refers to the script name. Using parameter expansion ${v##/}
to remove everything starting from the front (left) until the last /, the greedy match essentially giving us the file name with extension. Then using the same, now from the trailing end (right) to remove the extension, i.e
${F%%.}.
To get the log filename: $0 refers to the script name. Using parameter expansion ${v##/}
to remove everything starting from the front (left) until the last /, the greedy match essentially giving us the file name with extension. Then using the same, now from the trailing end (right) to remove the extension, i.e
${F%%.}.