Created
March 28, 2015 01:45
-
-
Save wlritchi/b53c61f67495c055fb07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
read a | |
seq 2 $a|tr ' | |
' n|sed -r "s/([^n]+)n/($a%\1)*/g;s/\*[^*]*\*$/\n/"|bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment