navi/test/playground.cheat
2019-09-28 23:24:12 -03:00

16 lines
No EOL
318 B
Text

% test, playground
# this should be the first test. single and double quotes + newlines
echo <x> <y>
# variable names
echo <x> <foo> <foo_bar> <lorem-ipsum> <dolor sit>
# use %
coll::new 1 2 3 | xargs -I% echo "hello %"
# return a constant number
echo 42
$ x: echo -e '2\n3\n4'
$ y: echo -e "$((x+10))\n$((x+20))"