Language Selection

English French German Italian Portuguese Spanish

Linux Commands for 99 Bottles of Beer

Filed under
Linux
HowTos
Humor

Linux server admins need good scripting skills and command-line chops, but who says they can't be fun? Learn Bash Karaoke with 99 Bottles of Beer on the Wall, quickly find disk hogs, and display used/free disk space.

99 Bottles of Beer on the Wall

How about a bit of geek Karaoke? Just copy and paste this into a Bash session, and it will look like this:

$ x="bottles of beer";y="on the wall";for b in {99..1};do echo "$b $x $y, $b $x. Take one down pass it around, $(($b-1)) $x $y"; sleep 3;done

99 bottles of beer on the wall, 99 bottles of beer. Take one down pass it around, 98 bottles of beer on the wall
98 bottles of beer on the wall, 98 bottles of beer. Take one down pass it around, 97 bottles of beer on the wall
97 bottles of beer on the wall, 97 bottles of beer. Take one down pass it around, 96 bottles of beer on the wall

And so on, until it finishes.

rest here




More in Tux Machines

[GNU IceCat] browser is (finally) on Fedora

GNU Icecat will be available on Fedora updates-testing repositories for some days. That’s right time to test harshly this new web browser (really it’s not so new considering it’s a fork of Firefox) and leave a positive/negative karma or open a bug. Read more

today's howtos

today's howtos

Leftovers: Gaming

  • Ryan Icculus Gordon On The Linux Action Show
    Ryan Icculus Gordon has just recently been on a guest on the excellent Linux Action Show to talk about Linux gaming. Ryan Icculus Gordon is the name behind a number of big ports, and you can see here just what he has done. Hint: It's a lot.
  • Empire: Total War Looks Close To A Linux Version, Pokes Fun At Linux Gamers
    We already knew that Total War: Rome II would come to Linux which sadly didn't come out when expected early this year, but now it looks like the original Empire: Total War will come to Linux too.
  • Another (Linux) game added to the Humble Jumbo Bundle 2
    - Legend of Grimrock: Old school and modern gaming combines in this thrilling dungeon crawler RPG from Almost Human Games. A group of prisoners are sentenced to certain death by exile to the secluded Mount Grimrock for vile crimes they may or may not have committed. Unbeknownst to their captors, the mountain is riddled with ancient tunnels, dungeons, and tombs built by crumbled civilizations long perished now. If they ever wish to see daylight again and reclaim their freedom, the ragtag group of prisoners must form a team and descend through the mountain, level by level.