energy-tracker
energy-tracker copied to clipboard
log to a csv file, fix the command for sonoma
The current command did not store the output.
I used tail -n 1 to get the number from lldb, and awk to remove the (int).
Additionally, I check if the file exists, if not, I create a first line with the column names. This way it is easier to read the file with the most common libraries