Skip to content

Instantly share code, notes, and snippets.

@tomoyamkung
Created December 6, 2013 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomoyamkung/7817864 to your computer and use it in GitHub Desktop.
Save tomoyamkung/7817864 to your computer and use it in GitHub Desktop.
[Shell]1 から 255 までカウントするスニペット。こういうのはちょっと応用が効くのでメモしておく。
#!/bin/sh
COUNT=1
MAX_COUNT=256
while [ $COUNT -lt $MAX_COUNT ]
do
echo "$COUNT"
COUNT=`expr $COUNT + 1`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment