Joined June 2014
·

Ashok Isaac

I make software work for people at Data-Worx Consulting http://www.data-worx.com
·
Plymouth, Minnesota
·
·
·

Posted to BASH (very rudimentary) logging over 1 year ago

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%%.
}.

Achievements
35 Karma
2,133 Total ProTip Views