From e700d2c0a4f75ae2875d0586887636fb3308762a Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 20 Mar 2019 16:30:38 +0100 Subject: Created lolBanner.sh, to show banners based on a file containing words. --- lolBanner.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 lolBanner.sh diff --git a/lolBanner.sh b/lolBanner.sh new file mode 100755 index 0000000..0cc445c --- /dev/null +++ b/lolBanner.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# Prints a random banner using figlet and lolcat and choosing a line from ~/.config/.banners + +nlines=$(cat $HOME/.config/.banners | wc -l) +line=$(($(($RANDOM % $nlines)) + 1)) + +figlet "Code : $(sed "${line}q;d" $HOME/.config/.banners)" | lolcat -- cgit v1.2.1