5 lines
No EOL
191 B
Bash
5 lines
No EOL
191 B
Bash
#!/usr/bin/env bash
|
|
|
|
excuses_file="$HOME/.local/share/bofh"
|
|
num_lines=$(nl "$excuses_file" | tail -n 1 | awk '{print $1}')
|
|
awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file" |