25 lines
628 B
Plaintext
25 lines
628 B
Plaintext
#!/usr/bin/env slash
|
|
|
|
anime-watcher # comment
|
|
exit_on_empty # line 6: filter = ""
|
|
format -o '$HOME/Anime/{0}.*' # line 10: format string to file
|
|
filter -f # line 10: check if file exists
|
|
branch == "hi" # branch/split/if/filter multiple stdout fds
|
|
cat
|
|
:a="hello"> tee out1.txt
|
|
-
|
|
/home> cat
|
|
tee out2.txt
|
|
merge ordered # merge multiple stdin fds
|
|
echo
|
|
|
|
# list all go files in pwd
|
|
ls *.go # filepath.Glob
|
|
|
|
echo $HOME # replace env vars TOOD cd not possible in pipeline
|
|
~:A="hi" B="bye"> ls # start ls in $HOME folder
|
|
|
|
echo -e "123\n321\nasd"
|
|
branch '^\w+?$'
|
|
echo # output: asd
|