Skip to content

Instantly share code, notes, and snippets.

@justinbaker999
Created July 17, 2018 14:21
Show Gist options
  • Save justinbaker999/58dd12d38e8b05230fddb9563cbeefcf to your computer and use it in GitHub Desktop.
Save justinbaker999/58dd12d38e8b05230fddb9563cbeefcf to your computer and use it in GitHub Desktop.
# !/bin/bash
# $__ $___
# Fizz Buzz
C=0;__=Fizz;___=Buzz;until [ $C -gt 100 ]; do if [ $(( $C % 5 )) -eq 0 ] && [ $(( $C % 3 )) -eq 0 ]; then a="$__$___";elif [ $(( $C % 3 )) -eq 0 ]; then a=$___;elif [ $(( $C % 5 )) -eq 0 ]; then a=$__;else a=$C; fi; let C+=1; echo "$a"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment