Skip to content

Instantly share code, notes, and snippets.

@paveljurca
Last active November 23, 2017 07:19
Show Gist options
  • Save paveljurca/a9db7cdd338710cd600e to your computer and use it in GitHub Desktop.
Save paveljurca/a9db7cdd338710cd600e to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
# http://stackoverflow.com/questions/30914955/a-perl-one-liner-into-a-bash-function
for (reverse 0..(shift)*60-1) {!system q!clear! and open(FIGLET,q!|figlet -f banner -c!) and printf FIGLET "%2d'%02d",$_/60,$_%60;sleep 1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment