Skip to content

Instantly share code, notes, and snippets.

@zowepsilon
Last active October 15, 2024 18:21
Show Gist options
  • Select an option

  • Save zowepsilon/0aa0deb9607fd87cc938b55d05c6ff7b to your computer and use it in GitHub Desktop.

Select an option

Save zowepsilon/0aa0deb9607fd87cc938b55d05c6ff7b to your computer and use it in GitHub Desktop.
if [ $1 -le 1 ]; then
echo $1
else
prev="$(expr $1 - 1)"
x="$(curl https://gist.githubusercontent.com/anatom3000/0aa0deb9607fd87cc938b55d05c6ff7b/raw/ | bash -s $prev)"
prev="$(expr $1 - 2)"
y="$(curl https://gist.githubusercontent.com/anatom3000/0aa0deb9607fd87cc938b55d05c6ff7b/raw/ | bash -s $prev)"
expr $x + $y
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment