Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/iosh
- ! +indent 4
- & > $/in # > /proc/shell/XXX/in
- accept text/json
- |
- cat ?type=text/plain
- echo hello world > $/thing # > /proc/shell/XXX/thing
- thing1
- thing2
- thing3 < $/in # < /proc/shell/XXX/in
- ~ # try
- foo | bar
- foo1
- foo2
- foo3
- && # (finally)
- echo we done
- || # else (catch)
- echo fail
- exit 2
- >! # output to null
- @ $a=1 # test
- ~
- a=($a+7) # expr
- a1
- foo
- bar
- ||
- echo we suck
- || # else (if)
- @ ($a-1)=1 # test and expr
- a2
- test1
- b1
- ||
- test2
- b2
- * seq 1 10 # for-each 1 to 10
- print _ # print current output row
- print . # print current row index
- *
- echo 1
- echo 2
- seq 3 10
- && # && is required here
- print _
- print .
- seq 1 10 | *
- && # && is required here too
- print _
- print .
- * < somefile
- &&
- print _
- print .
- thing4
- ||
- > /var/log # else send the following to log
- x= 48
- y= 72
- do_a_thing
- & > $/stuff
- bar1
- bar2
- bar3
- & do_a_thing
- echo what now? # FIXME
- & set in
- echo or this? # FIXME
- rug_ties_the_room_together $|in $|stuff
- z=
- echo 1
- echo 2
- echo 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement