updated antidote from sheldon
This commit is contained in:
parent
0ed285bef9
commit
863808c00d
5 changed files with 11 additions and 12 deletions
|
@ -6,10 +6,10 @@ case "$1" in
|
|||
echo "Daily Dad Joke: $joke"
|
||||
;;
|
||||
"bofh")
|
||||
excuses_file="$HOME/.local/share/bofh"
|
||||
num_lines=$(nl "$excuses_file" | tail -n 1 | awk '{print $1}')
|
||||
file="$HOME/.local/share/bofh"
|
||||
lines=$(nl "$file" | tail -n 1 | awk '{print $1}')
|
||||
echo -n "Daily BOFH Excuse: "
|
||||
awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file"
|
||||
awk 'NR=='$((1 + RANDOM % lines ))'{print;exit}' "$file"
|
||||
;;
|
||||
"hq")
|
||||
file="$HOME/.local/share/hackerquotes/$2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue