Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Shell-one-liner/00-META.yaml
Normal file
3
Task/Shell-one-liner/00-META.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
from: http://rosettacode.org/wiki/Shell_one-liner
|
||||
note: Programming environment operations
|
||||
6
Task/Shell-one-liner/00-TASK.txt
Normal file
6
Task/Shell-one-liner/00-TASK.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
;Task:
|
||||
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.
|
||||
<br><br>
|
||||
|
||||
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");'
|
||||
|
|
@ -0,0 +1 @@
|
|||
osascript -e 'say "Hello, World!"'
|
||||
1
Task/Shell-one-liner/Arturo/shell-one-liner.arturo
Normal file
1
Task/Shell-one-liner/Arturo/shell-one-liner.arturo
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ arturo -e:"print {Hello World!}"
|
||||
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/BaCon/shell-one-liner.bacon
Normal file
1
Task/Shell-one-liner/BaCon/shell-one-liner.bacon
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo "PRINT \"Hello World\" " > a.bac && bacon a && ./a
|
||||
1
Task/Shell-one-liner/Bc/shell-one-liner.bc
Normal file
1
Task/Shell-one-liner/Bc/shell-one-liner.bc
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ echo 'print "Hello "; var=99; ++var + 20 + 3' | bc
|
||||
1
Task/Shell-one-liner/Bracmat/shell-one-liner-1.bracmat
Normal file
1
Task/Shell-one-liner/Bracmat/shell-one-liner-1.bracmat
Normal file
|
|
@ -0,0 +1 @@
|
|||
bracmat "put$tay$(e^x,x,20)&"
|
||||
1
Task/Shell-one-liner/Bracmat/shell-one-liner-2.bracmat
Normal file
1
Task/Shell-one-liner/Bracmat/shell-one-liner-2.bracmat
Normal file
|
|
@ -0,0 +1 @@
|
|||
bracmat 'put$tay$(e^x,x,10)&'
|
||||
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/shell-one-liner.csh
Normal file
1
Task/Shell-one-liner/C-Shell/shell-one-liner.csh
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ csh -fc 'if (5 < 6) echo ok'
|
||||
3
Task/Shell-one-liner/C-sharp/shell-one-liner.cs
Normal file
3
Task/Shell-one-liner/C-sharp/shell-one-liner.cs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
> Add-Type -TypeDefinition "public class HelloWorld { public static void SayHi() { System.Console.WriteLine(""Hi!""); } }"
|
||||
> [HelloWorld]::SayHi()
|
||||
Hi!
|
||||
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
|
||||
1
Task/Shell-one-liner/COBOL/shell-one-liner-1.cobol
Normal file
1
Task/Shell-one-liner/COBOL/shell-one-liner-1.cobol
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'display "hello".' | cobc -xFj -frelax -
|
||||
1
Task/Shell-one-liner/COBOL/shell-one-liner-2.cobol
Normal file
1
Task/Shell-one-liner/COBOL/shell-one-liner-2.cobol
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'id division. program-id. hello. procedure division. display "hello".' | cobc -xFj -
|
||||
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/Delphi/shell-one-liner.delphi
Normal file
1
Task/Shell-one-liner/Delphi/shell-one-liner.delphi
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo program Prog;begin writeln('Hi');end. >> "./a.dpt" & dcc32 -Q -CC -W- "./a.dpt" & a.exe
|
||||
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()'
|
||||
2
Task/Shell-one-liner/Elixir/shell-one-liner.elixir
Normal file
2
Task/Shell-one-liner/Elixir/shell-one-liner.elixir
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ elixir -e "IO.puts 'Hello, World!'"
|
||||
Hello, World!
|
||||
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/Es/shell-one-liner.es
Normal file
1
Task/Shell-one-liner/Es/shell-one-liner.es
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ es -c 'if {test 5 -lt 6} {echo ok}'
|
||||
2
Task/Shell-one-liner/F-Sharp/shell-one-liner.fs
Normal file
2
Task/Shell-one-liner/F-Sharp/shell-one-liner.fs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
> echo printfn "Hello from F#" | fsi --quiet
|
||||
Hello from F#
|
||||
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
|
||||
1
Task/Shell-one-liner/Fortran/shell-one-liner.f
Normal file
1
Task/Shell-one-liner/Fortran/shell-one-liner.f
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ gawk 'BEGIN{print"write(6,\"(2(g12.3,x))\")(i/10.0,besj1(i/10.0), i=0,1000)\nend";exit(0)}'|gfortran -ffree-form -x f95 - | gnuplot -p -e 'plot "<./a.out" t "Bessel function of 1st kind" w l'
|
||||
1
Task/Shell-one-liner/Free-Pascal/shell-one-liner.pas
Normal file
1
Task/Shell-one-liner/Free-Pascal/shell-one-liner.pas
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo "begin writeLn('Hi'); end." | ifpc /dev/stdin
|
||||
4
Task/Shell-one-liner/FreeBASIC/shell-one-liner.basic
Normal file
4
Task/Shell-one-liner/FreeBASIC/shell-one-liner.basic
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
Shell "echo For i As Integer = 1 To 10 : Print i : Next > zzz.bas && fbc zzz.bas && zzz"
|
||||
Sleep
|
||||
1
Task/Shell-one-liner/Frink/shell-one-liner.frink
Normal file
1
Task/Shell-one-liner/Frink/shell-one-liner.frink
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ frink -e "factorFlat[2^67-1]"
|
||||
1
Task/Shell-one-liner/FutureBasic/shell-one-liner.basic
Normal file
1
Task/Shell-one-liner/FutureBasic/shell-one-liner.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
window 1,,(0,0,160,120):Str255 a:open "Unix",1,"cal 10 2018":do:line input #1,a:print a:until eof(1):close 1:HandleEvents
|
||||
5
Task/Shell-one-liner/Gambas/shell-one-liner.gambas
Normal file
5
Task/Shell-one-liner/Gambas/shell-one-liner.gambas
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Public Sub Main()
|
||||
|
||||
Shell "echo Hello World"
|
||||
|
||||
End
|
||||
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.go
Normal file
1
Task/Shell-one-liner/Go/shell-one-liner.go
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'package main;func main(){println("hlowrld")}'>/tmp/h.go;go run /tmp/h.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
|
||||
1
Task/Shell-one-liner/Huginn/shell-one-liner-1.huginn
Normal file
1
Task/Shell-one-liner/Huginn/shell-one-liner-1.huginn
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ huginn -c '"Hello"'
|
||||
1
Task/Shell-one-liner/Huginn/shell-one-liner-2.huginn
Normal file
1
Task/Shell-one-liner/Huginn/shell-one-liner-2.huginn
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ huginn -c 'print("Hello\n")'
|
||||
1
Task/Shell-one-liner/Huginn/shell-one-liner-3.huginn
Normal file
1
Task/Shell-one-liner/Huginn/shell-one-liner-3.huginn
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ huginn -c 'print("Hello\n");'
|
||||
1
Task/Shell-one-liner/Icon/shell-one-liner-1.icon
Normal file
1
Task/Shell-one-liner/Icon/shell-one-liner-1.icon
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo "procedure main();write(\"hello\");end" | icont - -x
|
||||
1
Task/Shell-one-liner/Icon/shell-one-liner-2.icon
Normal file
1
Task/Shell-one-liner/Icon/shell-one-liner-2.icon
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo "procedure main();write(\"hello world\");end" >hello.icn; unicon hello.icn -x
|
||||
2
Task/Shell-one-liner/J/shell-one-liner-1.j
Normal file
2
Task/Shell-one-liner/J/shell-one-liner-1.j
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ jconsole -js "exit echo 'Hello'"
|
||||
Hello
|
||||
2
Task/Shell-one-liner/J/shell-one-liner-2.j
Normal file
2
Task/Shell-one-liner/J/shell-one-liner-2.j
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ :|jconsole -js "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
|
||||
2
Task/Shell-one-liner/Jq/shell-one-liner.jq
Normal file
2
Task/Shell-one-liner/Jq/shell-one-liner.jq
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ jq -M -n 1+1
|
||||
2
|
||||
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\""
|
||||
1
Task/Shell-one-liner/Lang/shell-one-liner.lang
Normal file
1
Task/Shell-one-liner/Lang/shell-one-liner.lang
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ lang -e "fn.println(Hello World)"
|
||||
1
Task/Shell-one-liner/Langur/shell-one-liner-1.langur
Normal file
1
Task/Shell-one-liner/Langur/shell-one-liner-1.langur
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ langur -e 'writeln "Are we reaching Fiji?"'
|
||||
1
Task/Shell-one-liner/Langur/shell-one-liner-2.langur
Normal file
1
Task/Shell-one-liner/Langur/shell-one-liner-2.langur
Normal file
|
|
@ -0,0 +1 @@
|
|||
C:\> langur /e 'writeln "Are we reaching Fiji?"'
|
||||
1
Task/Shell-one-liner/Lasso/shell-one-liner-1.lasso
Normal file
1
Task/Shell-one-liner/Lasso/shell-one-liner-1.lasso
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo " 'The date and time is: ' + date " | lasso9 --
|
||||
1
Task/Shell-one-liner/Lasso/shell-one-liner-2.lasso
Normal file
1
Task/Shell-one-liner/Lasso/shell-one-liner-2.lasso
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ lasso9 -s " 'The date and time is: ' + date "
|
||||
1
Task/Shell-one-liner/Liberty-BASIC/shell-one-liner.basic
Normal file
1
Task/Shell-one-liner/Liberty-BASIC/shell-one-liner.basic
Normal file
|
|
@ -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/Maple/shell-one-liner.maple
Normal file
1
Task/Shell-one-liner/Maple/shell-one-liner.maple
Normal file
|
|
@ -0,0 +1 @@
|
|||
maple -c'print(HELLO);' -cquit
|
||||
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/Min/shell-one-liner.min
Normal file
1
Task/Shell-one-liner/Min/shell-one-liner.min
Normal file
|
|
@ -0,0 +1 @@
|
|||
min -e:"\"hi from min\" puts!"
|
||||
1
Task/Shell-one-liner/Nanoquery/shell-one-liner.nanoquery
Normal file
1
Task/Shell-one-liner/Nanoquery/shell-one-liner.nanoquery
Normal file
|
|
@ -0,0 +1 @@
|
|||
nq -e "println \"Hello Nanoquery!\""
|
||||
1
Task/Shell-one-liner/NetLogo/shell-one-liner-1.netlogo
Normal file
1
Task/Shell-one-liner/NetLogo/shell-one-liner-1.netlogo
Normal file
|
|
@ -0,0 +1 @@
|
|||
let x 15 ask turtles [ set xcor x set x x + 1 ]
|
||||
1
Task/Shell-one-liner/NetLogo/shell-one-liner-2.netlogo
Normal file
1
Task/Shell-one-liner/NetLogo/shell-one-liner-2.netlogo
Normal file
|
|
@ -0,0 +1 @@
|
|||
right random 90 forward 10
|
||||
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.l
Normal file
2
Task/Shell-one-liner/NewLISP/shell-one-liner.l
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
newlisp -e "\"Hello\"
|
||||
->"Hello"
|
||||
2
Task/Shell-one-liner/OCaml/shell-one-liner-1.ocaml
Normal file
2
Task/Shell-one-liner/OCaml/shell-one-liner-1.ocaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ ocaml <(echo 'print_endline "Hello"')
|
||||
Hello
|
||||
2
Task/Shell-one-liner/OCaml/shell-one-liner-2.ocaml
Normal file
2
Task/Shell-one-liner/OCaml/shell-one-liner-2.ocaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ echo 'print_endline "Hello"' | ocaml -stdin
|
||||
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/Octave/shell-one-liner.octave
Normal file
2
Task/Shell-one-liner/Octave/shell-one-liner.octave
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ octave --eval 'printf("Hello World, it is %s!\n",datestr(now));'
|
||||
Hello World, it is 28-Aug-2013 17:53:47!
|
||||
1
Task/Shell-one-liner/Oforth/shell-one-liner.fth
Normal file
1
Task/Shell-one-liner/Oforth/shell-one-liner.fth
Normal file
|
|
@ -0,0 +1 @@
|
|||
oforth --P"1000 seq map(#sqrt) sum print"
|
||||
1
Task/Shell-one-liner/OoRexx/shell-one-liner.rexx
Normal file
1
Task/Shell-one-liner/OoRexx/shell-one-liner.rexx
Normal file
|
|
@ -0,0 +1 @@
|
|||
rexx -e "say 'Goodbye, world.'"
|
||||
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.parigp
Normal file
1
Task/Shell-one-liner/PARI-GP/shell-one-liner.parigp
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/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
|
||||
|
|
@ -0,0 +1 @@
|
|||
mkdir -p Tmp; echo "println(\"hello world\");" > Tmp/Tmp.pde; processing-java --sketch="`pwd`/Tmp" --run
|
||||
3
Task/Shell-one-liner/Prolog/shell-one-liner-1.pro
Normal file
3
Task/Shell-one-liner/Prolog/shell-one-liner-1.pro
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ swipl -g "writeln('hello world')." -t 'halt.'
|
||||
hello world
|
||||
$
|
||||
3
Task/Shell-one-liner/Prolog/shell-one-liner-2.pro
Normal file
3
Task/Shell-one-liner/Prolog/shell-one-liner-2.pro
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ gprolog --init-goal "write('goodbye'),nl,halt"
|
||||
goodbye
|
||||
$
|
||||
2
Task/Shell-one-liner/Prolog/shell-one-liner-3.pro
Normal file
2
Task/Shell-one-liner/Prolog/shell-one-liner-3.pro
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ yap -q -g "current_prolog_flag(dialect, D), writeln(D), halt"
|
||||
yap
|
||||
5
Task/Shell-one-liner/Prolog/shell-one-liner-4.pro
Normal file
5
Task/Shell-one-liner/Prolog/shell-one-liner-4.pro
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
$ swipl -q <<< "current_prolog_flag(dialect,D), writeln(D), halt."
|
||||
swi
|
||||
|
||||
$ yap -q <<< "current_prolog_flag(dialect,D), writeln(D), halt."
|
||||
yap
|
||||
5
Task/Shell-one-liner/Prolog/shell-one-liner-5.pro
Normal file
5
Task/Shell-one-liner/Prolog/shell-one-liner-5.pro
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
$ echo "current_prolog_flag(dialect,D), writeln(D), halt." | swipl -q
|
||||
swi
|
||||
|
||||
$ echo "current_prolog_flag(dialect,D), writeln(D), halt." | yap -q
|
||||
yap
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue