navi/test/playground.cheat

16 lines
318 B
Plaintext
Raw Normal View History

2019-09-25 17:44:57 +03:00
% test, playground
# this should be the first test. single and double quotes + newlines
2019-09-25 17:44:57 +03:00
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))"