Files
spark/tools/logging/show_last_run.sh
T
John Colvin e1234fe583 fix: Fix typo in log helper script 'show_last_run.sh'
So it actually applies the 'num_lines' override arg
2023-06-07 13:16:21 -04:00

9 lines
171 B
Bash
Executable File

#!/bin/bash
declare num_lines=9999
if [[ "$#" -gt 0 ]]; then
num_lines=$1
fi
tac ~/sparkdata/data/logging/log | grep "Sparkd launched" -m 1 -B $num_lines | tac | less