Batch script decimal breakdown by 8

Started by Kiyevame Ikran, May 10, 2014, 03:24:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kiyevame Ikran

Ngaytxoa...I don't know what topic title should I give.

This is the simple batch script that I made to break down decimal numbers by 8. Hope this helps  :)
Learn the Na'vi number system first then you can understand how this works



Copy and paste to notepad. Then save it as .bat extension...like for example: Number.bat
Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random

Tirea Aean

#1
And here is a Bash version, for Mac and Linux machines. :)


copy code, paste into text editor, save as for example Number.sh in your User's Home folder. (/home/<yourusername> aka ~/)
then open a Terminal and run chmod +x Number.sh to make it executable.
To run it, just open a Terminal and run ./Number.sh

EDIT: last sign in my script was -gt, changed to -ge so it works now
DOUBLE EDIT: all signs changed to -ge now it works for real this time. I think.
TRIPLE EDIT: added clear statements to clear screen
QUAD EDIT: made it behave more similarly to original batch

Kiyevame Ikran

Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random

Tirea Aean

#3
Quote from: Kiyevame Ikran on May 11, 2014, 04:15:04 AM
Eltur tìtxen si  ;D

I first tried to translate it exactly/literally from yours, but it didn't quite work out right. I probably could have been more concise and/or efficient. I just wanted to have it ported asap so Mac/Linux users didn't feel left out. :)

Beware the edits; I keep changing it to act more like the batch original

EDIT: Hmmm. I forgot the Invalid choice thing. Ok guys, only type in positive integers with this thing and you should be fine. ;D