Skip to content

Instantly share code, notes, and snippets.

@orymate
Created February 15, 2011 14:27
Show Gist options
  • Save orymate/827588 to your computer and use it in GitHub Desktop.
Save orymate/827588 to your computer and use it in GitHub Desktop.
#!/bin/bash
harmas ()
{
[ $1 -ge 3 ] && echo -n $(harmas $(expr $1 / 3))
echo -n $(expr $1 % 3)
}
harmas $1
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment