dotfiles/dot_local/bin/executable_bofh
2022-12-15 12:47:51 +01:00

5 lines
No EOL
191 B
Bash

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