all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
3
Task/Shell-one-liner/0DESCRIPTION
Normal file
3
Task/Shell-one-liner/0DESCRIPTION
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Show how to specify and execute a short program in the language from a command shell, where the input to the command shell is only one line in length.
|
||||
|
||||
Avoid depending on the particular shell or operating system used as much as is reasonable; if the language has notable implementations which have different command argument syntax, or the systems those implementations run on have different styles of shells, it would be good to show multiple examples.
|
||||
2
Task/Shell-one-liner/1META.yaml
Normal file
2
Task/Shell-one-liner/1META.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
note: Programming environment operations
|
||||
1
Task/Shell-one-liner/ACL2/shell-one-liner.acl2
Normal file
1
Task/Shell-one-liner/ACL2/shell-one-liner.acl2
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ acl2 <<< '(cw "Hello.")'
|
||||
1
Task/Shell-one-liner/ALGOL-68/shell-one-liner-1.alg
Normal file
1
Task/Shell-one-liner/ALGOL-68/shell-one-liner-1.alg
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ a68g -e 'print(("Hello",new line))'
|
||||
6
Task/Shell-one-liner/ALGOL-68/shell-one-liner-2.alg
Normal file
6
Task/Shell-one-liner/ALGOL-68/shell-one-liner-2.alg
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
code='print(("Hello", new line))'
|
||||
a=/tmp/algol$$ s=/usr/share/algol68toc;
|
||||
echo -e "PROGRAM algol$$ CONTEXT VOID\nUSE standard\nBEGIN\n$code\nEND\nFINISH\n" > $a.a68 &&
|
||||
a68toc -lib $s -dir $s -uname TMP -tmp $a.a68 && rm $a.a68 &&
|
||||
gcc $s/Afirst.o $a.c -l{a68s,a68,m,c} -o $a && rm $a.c &&
|
||||
$a; rm $a
|
||||
1
Task/Shell-one-liner/AWK/shell-one-liner-1.awk
Normal file
1
Task/Shell-one-liner/AWK/shell-one-liner-1.awk
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ awk 'BEGIN { print "Hello"; }'
|
||||
1
Task/Shell-one-liner/AWK/shell-one-liner-2.awk
Normal file
1
Task/Shell-one-liner/AWK/shell-one-liner-2.awk
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ awk '/IN/ { print $2, $4; }' <input.txt
|
||||
1
Task/Shell-one-liner/Ada/shell-one-liner.ada
Normal file
1
Task/Shell-one-liner/Ada/shell-one-liner.ada
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'with Ada.text_IO; use Ada.text_IO; procedure X is begin Put("Hello!"); end X;' > x.adb; gnatmake x; ./x; rm x.adb x.ali x.o x
|
||||
1
Task/Shell-one-liner/Aikido/shell-one-liner.aikido
Normal file
1
Task/Shell-one-liner/Aikido/shell-one-liner.aikido
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'println ("Hello")' | aikido
|
||||
1
Task/Shell-one-liner/Aime/shell-one-liner.aime
Normal file
1
Task/Shell-one-liner/Aime/shell-one-liner.aime
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ src/aime -c 'o_text("Hello, World!\n");'
|
||||
1
Task/Shell-one-liner/BASIC/shell-one-liner-1.basic
Normal file
1
Task/Shell-one-liner/BASIC/shell-one-liner-1.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'print "foo"'|basic
|
||||
1
Task/Shell-one-liner/BASIC/shell-one-liner-2.basic
Normal file
1
Task/Shell-one-liner/BASIC/shell-one-liner-2.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo print "foo"|basic
|
||||
1
Task/Shell-one-liner/BASIC/shell-one-liner-3.basic
Normal file
1
Task/Shell-one-liner/BASIC/shell-one-liner-3.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
PRINT "Hello World!"
|
||||
1
Task/Shell-one-liner/Burlesque/shell-one-liner.blq
Normal file
1
Task/Shell-one-liner/Burlesque/shell-one-liner.blq
Normal file
|
|
@ -0,0 +1 @@
|
|||
Burlesque.exe --no-stdin "5 5 .+"
|
||||
1
Task/Shell-one-liner/C/shell-one-liner.c
Normal file
1
Task/Shell-one-liner/C/shell-one-liner.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ echo 'main() {printf("Hello\n");}' | gcc -w -x c -; ./a.out
|
||||
1
Task/Shell-one-liner/CMake/shell-one-liner.cmake
Normal file
1
Task/Shell-one-liner/CMake/shell-one-liner.cmake
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'message(STATUS "Goodbye, World!")' | cmake -P /dev/stdin
|
||||
3
Task/Shell-one-liner/Clojure/shell-one-liner.clj
Normal file
3
Task/Shell-one-liner/Clojure/shell-one-liner.clj
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ clj-env-dir -e "(defn add2 [x] (inc (inc x))) (add2 40)"
|
||||
#'user/add2
|
||||
42
|
||||
1
Task/Shell-one-liner/Common-Lisp/shell-one-liner-1.lisp
Normal file
1
Task/Shell-one-liner/Common-Lisp/shell-one-liner-1.lisp
Normal file
|
|
@ -0,0 +1 @@
|
|||
sbcl --noinform --eval '(progn (princ "Hello") (terpri) (quit))'
|
||||
1
Task/Shell-one-liner/Common-Lisp/shell-one-liner-2.lisp
Normal file
1
Task/Shell-one-liner/Common-Lisp/shell-one-liner-2.lisp
Normal file
|
|
@ -0,0 +1 @@
|
|||
clisp.exe -q -x "(progn (format t \"Hello from CLISP\") (quit))"
|
||||
1
Task/Shell-one-liner/D/shell-one-liner.d
Normal file
1
Task/Shell-one-liner/D/shell-one-liner.d
Normal file
|
|
@ -0,0 +1 @@
|
|||
rdmd --eval="writeln(q{Hello World!})"
|
||||
1
Task/Shell-one-liner/Dc/shell-one-liner.dc
Normal file
1
Task/Shell-one-liner/Dc/shell-one-liner.dc
Normal file
|
|
@ -0,0 +1 @@
|
|||
dc -e '22 7/p'
|
||||
1
Task/Shell-one-liner/E/shell-one-liner-1.e
Normal file
1
Task/Shell-one-liner/E/shell-one-liner-1.e
Normal file
|
|
@ -0,0 +1 @@
|
|||
rune --src.e 'println("Hello")'
|
||||
1
Task/Shell-one-liner/E/shell-one-liner-2.e
Normal file
1
Task/Shell-one-liner/E/shell-one-liner-2.e
Normal file
|
|
@ -0,0 +1 @@
|
|||
rune --src.e-awt 'def f := <swing:makeJFrame>("Hello"); f.show(); f.addWindowListener(def _{to windowClosing(_) {interp.continueAtTop()} match _{}}); interp.blockAtTop()'
|
||||
1
Task/Shell-one-liner/Emacs-Lisp/shell-one-liner-1.l
Normal file
1
Task/Shell-one-liner/Emacs-Lisp/shell-one-liner-1.l
Normal file
|
|
@ -0,0 +1 @@
|
|||
emacs -batch -eval '(princ "Hello World!\n")'
|
||||
1
Task/Shell-one-liner/Emacs-Lisp/shell-one-liner-2.l
Normal file
1
Task/Shell-one-liner/Emacs-Lisp/shell-one-liner-2.l
Normal file
|
|
@ -0,0 +1 @@
|
|||
emacs -batch sample.c --eval '(indent-region (point-min) (point-max) nil)' -f save-buffer
|
||||
2
Task/Shell-one-liner/Erlang/shell-one-liner.erl
Normal file
2
Task/Shell-one-liner/Erlang/shell-one-liner.erl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ erl -noshell -eval 'io:format("hello~n").' -s erlang halt
|
||||
hello
|
||||
1
Task/Shell-one-liner/Factor/shell-one-liner.factor
Normal file
1
Task/Shell-one-liner/Factor/shell-one-liner.factor
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ factor -run=none -e="USE: io \"hi\" print"
|
||||
2
Task/Shell-one-liner/Forth/shell-one-liner.fth
Normal file
2
Task/Shell-one-liner/Forth/shell-one-liner.fth
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ gforth -e ".( Hello) cr bye"
|
||||
Hello
|
||||
2
Task/Shell-one-liner/Gema/shell-one-liner.gema
Normal file
2
Task/Shell-one-liner/Gema/shell-one-liner.gema
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ gema -p '\B=Hello\n@end'
|
||||
Hello
|
||||
1
Task/Shell-one-liner/Go/shell-one-liner-1.go
Normal file
1
Task/Shell-one-liner/Go/shell-one-liner-1.go
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'package main;func main(){println("hllowrld")}'>8.go;8g 8.go;8l 8.8;8.out
|
||||
1
Task/Shell-one-liner/Go/shell-one-liner-2.go
Normal file
1
Task/Shell-one-liner/Go/shell-one-liner-2.go
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'package main;func main(){println("hllowrld")}'>/tmp/8.go;gorun /tmp/8.go
|
||||
2
Task/Shell-one-liner/Groovy/shell-one-liner-1.groovy
Normal file
2
Task/Shell-one-liner/Groovy/shell-one-liner-1.groovy
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ groovysh -q "println 'Hello'"
|
||||
Hello
|
||||
2
Task/Shell-one-liner/Groovy/shell-one-liner-2.groovy
Normal file
2
Task/Shell-one-liner/Groovy/shell-one-liner-2.groovy
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
C:\Users\user> groovysh -q "println 'Hello'"
|
||||
Hello
|
||||
2
Task/Shell-one-liner/Haskell/shell-one-liner.hs
Normal file
2
Task/Shell-one-liner/Haskell/shell-one-liner.hs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ ghc -e 'putStrLn "Hello"'
|
||||
Hello
|
||||
2
Task/Shell-one-liner/J/shell-one-liner.j
Normal file
2
Task/Shell-one-liner/J/shell-one-liner.j
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ jconsole -js "exit echo 'Hello'"
|
||||
Hello
|
||||
3
Task/Shell-one-liner/Java/shell-one-liner-1.java
Normal file
3
Task/Shell-one-liner/Java/shell-one-liner-1.java
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ echo 'public class X{public static void main(String[]args){' \
|
||||
> 'System.out.println("Hello Java!");}}' >X.java
|
||||
$ javac X.java && java X
|
||||
1
Task/Shell-one-liner/Java/shell-one-liner-2.java
Normal file
1
Task/Shell-one-liner/Java/shell-one-liner-2.java
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ echo 'public class X{public static void main(String[]args){System.out.println("Hello Java!");}}'>X.java;javac X.java&&java X
|
||||
2
Task/Shell-one-liner/Java/shell-one-liner-3.java
Normal file
2
Task/Shell-one-liner/Java/shell-one-liner-3.java
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
C:\>echo public class X{public static void main(String[] args){System.out.println("Hello Java!");}}>X.java&&javac X.java&&java X
|
||||
Hello Java!
|
||||
2
Task/Shell-one-liner/JavaScript/shell-one-liner.js
Normal file
2
Task/Shell-one-liner/JavaScript/shell-one-liner.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ js -e 'print("hello")'
|
||||
hello
|
||||
3
Task/Shell-one-liner/Julia/shell-one-liner.julia
Normal file
3
Task/Shell-one-liner/Julia/shell-one-liner.julia
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ julia -e 'for x in ARGS; println(x); end' foo bar
|
||||
foo
|
||||
bar
|
||||
1
Task/Shell-one-liner/K/shell-one-liner.k
Normal file
1
Task/Shell-one-liner/K/shell-one-liner.k
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ k -e "\`0: \"hello\\n\""
|
||||
|
|
@ -0,0 +1 @@
|
|||
echo print "hello">oneLiner.bas & liberty -r oneLiner.bas echo print "hello">oneLiner.bas & liberty -r oneLiner.bas
|
||||
1
Task/Shell-one-liner/Lua/shell-one-liner.lua
Normal file
1
Task/Shell-one-liner/Lua/shell-one-liner.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
lua -e 'print "Hello World!"'
|
||||
1
Task/Shell-one-liner/Mathematica/shell-one-liner.math
Normal file
1
Task/Shell-one-liner/Mathematica/shell-one-liner.math
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo Print[2+2] > file & math.exe -script file
|
||||
1
Task/Shell-one-liner/NetRexx/shell-one-liner.netrexx
Normal file
1
Task/Shell-one-liner/NetRexx/shell-one-liner.netrexx
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ TNRX=`mktemp T_XXXXXXXXXXXX` && test ! -e $TNRX.* && (echo 'say "Goodbye, World!"' >$TNRX; nrc -exec $TNRX; rm $TNRX $TNRX.*; unset TNRX)
|
||||
2
Task/Shell-one-liner/NewLISP/shell-one-liner.newlisp
Normal file
2
Task/Shell-one-liner/NewLISP/shell-one-liner.newlisp
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
newlisp -e "\"Hello\"
|
||||
->"Hello"
|
||||
2
Task/Shell-one-liner/OCaml/shell-one-liner.ocaml
Normal file
2
Task/Shell-one-liner/OCaml/shell-one-liner.ocaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ ocaml <(echo 'print_endline "Hello"')
|
||||
Hello
|
||||
1
Task/Shell-one-liner/Objeck/shell-one-liner.objeck
Normal file
1
Task/Shell-one-liner/Objeck/shell-one-liner.objeck
Normal file
|
|
@ -0,0 +1 @@
|
|||
./obc -run '"Hello"->PrintLine();' -dest hello.obe ; ./obr hello.obe
|
||||
2
Task/Shell-one-liner/Oz/shell-one-liner.oz
Normal file
2
Task/Shell-one-liner/Oz/shell-one-liner.oz
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
echo >tmp.oz "{System.show hello}"; ozc -l System -e tmp.oz
|
||||
hello
|
||||
1
Task/Shell-one-liner/PARI-GP/shell-one-liner.pari
Normal file
1
Task/Shell-one-liner/PARI-GP/shell-one-liner.pari
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo "print(Pi)" | gp -q
|
||||
2
Task/Shell-one-liner/PHP/shell-one-liner.php
Normal file
2
Task/Shell-one-liner/PHP/shell-one-liner.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ php -r 'echo "Hello\n";'
|
||||
Hello
|
||||
2
Task/Shell-one-liner/Pascal/shell-one-liner.pascal
Normal file
2
Task/Shell-one-liner/Pascal/shell-one-liner.pascal
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ echo "begin writeln('Hello World') end." >OneLiner.pas; fpc -Fe/dev/null OneLiner.pas; ./OneLiner
|
||||
Hello World
|
||||
2
Task/Shell-one-liner/Perl-6/shell-one-liner.pl6
Normal file
2
Task/Shell-one-liner/Perl-6/shell-one-liner.pl6
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ perl6 -e 'say "Hello, world!"'
|
||||
Hello, world!
|
||||
2
Task/Shell-one-liner/Perl/shell-one-liner.pl
Normal file
2
Task/Shell-one-liner/Perl/shell-one-liner.pl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ perl -e 'print "Hello\n"'
|
||||
Hello
|
||||
2
Task/Shell-one-liner/PicoLisp/shell-one-liner.l
Normal file
2
Task/Shell-one-liner/PicoLisp/shell-one-liner.l
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ picolisp -'prinl "Hello world!"' -bye
|
||||
Hello world!
|
||||
2
Task/Shell-one-liner/Pike/shell-one-liner.pike
Normal file
2
Task/Shell-one-liner/Pike/shell-one-liner.pike
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ pike -e 'write("Hello\n");'
|
||||
Hello
|
||||
2
Task/Shell-one-liner/PowerShell/shell-one-liner.psh
Normal file
2
Task/Shell-one-liner/PowerShell/shell-one-liner.psh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
> powershell -Command "Write-Host 'Hello'"
|
||||
Hello
|
||||
1
Task/Shell-one-liner/PureBasic/shell-one-liner.purebasic
Normal file
1
Task/Shell-one-liner/PureBasic/shell-one-liner.purebasic
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ echo 'messagerequester("Greetings","hello")' > "dib.pb" && ./pbcompiler dib.pb -e "dib" && ./dib
|
||||
2
Task/Shell-one-liner/Python/shell-one-liner-1.py
Normal file
2
Task/Shell-one-liner/Python/shell-one-liner-1.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ python -c 'print "Hello"'
|
||||
Hello
|
||||
1
Task/Shell-one-liner/Python/shell-one-liner-2.py
Normal file
1
Task/Shell-one-liner/Python/shell-one-liner-2.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
python -m CGIHTTPServer
|
||||
2
Task/Shell-one-liner/R/shell-one-liner-1.r
Normal file
2
Task/Shell-one-liner/R/shell-one-liner-1.r
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ echo 'cat("Hello\n")' | R --slave
|
||||
Hello
|
||||
2
Task/Shell-one-liner/R/shell-one-liner-2.r
Normal file
2
Task/Shell-one-liner/R/shell-one-liner-2.r
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ Rscript -e 'cat("Hello\n")'
|
||||
Hello
|
||||
1
Task/Shell-one-liner/REBOL/shell-one-liner.rebol
Normal file
1
Task/Shell-one-liner/REBOL/shell-one-liner.rebol
Normal file
|
|
@ -0,0 +1 @@
|
|||
rebview -vswq --do "print {Hello!} quit"
|
||||
5
Task/Shell-one-liner/REXX/shell-one-liner.rexx
Normal file
5
Task/Shell-one-liner/REXX/shell-one-liner.rexx
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
┌────────────────────────────────────────────────┐
|
||||
│ from the MS Windows® command line (cmd.exe) │
|
||||
└────────────────────────────────────────────────┘
|
||||
|
||||
echo do j=10 by 20 for 4;say right('hello',j);end | regina
|
||||
2
Task/Shell-one-liner/Racket/shell-one-liner.rkt
Normal file
2
Task/Shell-one-liner/Racket/shell-one-liner.rkt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ racket -e "(displayln \"Hello World\")"
|
||||
Hello World
|
||||
1
Task/Shell-one-liner/Retro/shell-one-liner.retro
Normal file
1
Task/Shell-one-liner/Retro/shell-one-liner.retro
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo '"hello\n" puts bye' | ./retro
|
||||
2
Task/Shell-one-liner/Ruby/shell-one-liner-1.rb
Normal file
2
Task/Shell-one-liner/Ruby/shell-one-liner-1.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ ruby -e 'puts "Hello"'
|
||||
Hello
|
||||
2
Task/Shell-one-liner/Ruby/shell-one-liner-2.rb
Normal file
2
Task/Shell-one-liner/Ruby/shell-one-liner-2.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ jruby -e 'puts "Hello from JRuby"'
|
||||
Hello from JRuby
|
||||
2
Task/Shell-one-liner/Ruby/shell-one-liner-3.rb
Normal file
2
Task/Shell-one-liner/Ruby/shell-one-liner-3.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ rbx -e 'puts "Hello from Rubinius"'
|
||||
Hello from Rubinius
|
||||
1
Task/Shell-one-liner/Run-BASIC/shell-one-liner.run
Normal file
1
Task/Shell-one-liner/Run-BASIC/shell-one-liner.run
Normal file
|
|
@ -0,0 +1 @@
|
|||
print shell$("echo hello world")
|
||||
1
Task/Shell-one-liner/SNOBOL4/shell-one-liner-1.sno
Normal file
1
Task/Shell-one-liner/SNOBOL4/shell-one-liner-1.sno
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'a output = "Hello, World!";end' | snobol4 -b
|
||||
1
Task/Shell-one-liner/SNOBOL4/shell-one-liner-2.sno
Normal file
1
Task/Shell-one-liner/SNOBOL4/shell-one-liner-2.sno
Normal file
|
|
@ -0,0 +1 @@
|
|||
snobol4 -b <<<'a output = "Hello, World!";end'
|
||||
2
Task/Shell-one-liner/Scala/shell-one-liner.scala
Normal file
2
Task/Shell-one-liner/Scala/shell-one-liner.scala
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
C:\>scala -e "println(\"Hello\")"
|
||||
Hello
|
||||
1
Task/Shell-one-liner/Scheme/shell-one-liner.ss
Normal file
1
Task/Shell-one-liner/Scheme/shell-one-liner.ss
Normal file
|
|
@ -0,0 +1 @@
|
|||
guile -c '(display "Hello, world!\n")'
|
||||
1
Task/Shell-one-liner/Shiny/shell-one-liner.shiny
Normal file
1
Task/Shell-one-liner/Shiny/shell-one-liner.shiny
Normal file
|
|
@ -0,0 +1 @@
|
|||
shiny -e "say 'hi'"
|
||||
1
Task/Shell-one-liner/Slate/shell-one-liner.slate
Normal file
1
Task/Shell-one-liner/Slate/shell-one-liner.slate
Normal file
|
|
@ -0,0 +1 @@
|
|||
./slate --eval "[inform: 'hello'] ensure: [exit: 0].".
|
||||
4
Task/Shell-one-liner/TXR/shell-one-liner.txr
Normal file
4
Task/Shell-one-liner/TXR/shell-one-liner.txr
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
$ echo 123-456-7890 | txr -c '@a-@b-@c' -
|
||||
a="123"
|
||||
b="456"
|
||||
c="7890"
|
||||
2
Task/Shell-one-liner/Tcl/shell-one-liner.tcl
Normal file
2
Task/Shell-one-liner/Tcl/shell-one-liner.tcl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ echo 'puts Hello' | tclsh
|
||||
Hello
|
||||
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-1.sh
Normal file
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-1.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ sh -c ls
|
||||
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-2.sh
Normal file
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-2.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ sh -c "echo hello"
|
||||
3
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-3.sh
Normal file
3
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-3.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ bash -c 'paste <(echo 1) <(echo 2)'
|
||||
$ ksh -c 'let i=3+4; print $i'
|
||||
$ zsh -c 'if [[ 5 -lt 6 ]] { echo ok };'
|
||||
3
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-4.sh
Normal file
3
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-4.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ VAR=`echo hello` # obsolescent backtick notation
|
||||
$ VAR=$(echo hello) # modern POSIX notation
|
||||
$ (echo hello) # execute in another shell process, not in this one
|
||||
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-5.sh
Normal file
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-5.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ csh -fc 'if (5 < 6) echo ok'
|
||||
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-6.sh
Normal file
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-6.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ es -c 'if {test 5 -lt 6} {echo ok}'
|
||||
6
Task/Shell-one-liner/Ursala/shell-one-liner.ursala
Normal file
6
Task/Shell-one-liner/Ursala/shell-one-liner.ursala
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
$ fun --main=-[hello]- --show
|
||||
hello
|
||||
$ fun --main="power/2 32" --cast %n
|
||||
4294967296
|
||||
$ fun --m="..mp2str mpfr..pi 120" --c %s
|
||||
'3.1415926535897932384626433832795028847E+00'
|
||||
|
|
@ -0,0 +1 @@
|
|||
vpw -c'Get_Key("Hello!") exit'
|
||||
Loading…
Add table
Add a link
Reference in a new issue