Skip to content

Instantly share code, notes, and snippets.

@ess
Created July 25, 2010 07:45
Show Gist options
  • Save ess/489402 to your computer and use it in GitHub Desktop.
Save ess/489402 to your computer and use it in GitHub Desktop.
#!/bin/bash -
command_not_found_handle () {
local Fizz=3 Buzz=5
[ $(( $2 % $1 )) -eq 0 ] && echo -n $1 && [ ${!1} -eq 3 ]
}
for i in {1..100}
do
Fizz $i && ! Buzz $i || echo -n $i
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment