Recent public codes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C++0x
- C99 strict
- CLIPS
- Clojure
- COBOL
- COBOL 85
- Common Lisp (clisp)
- D (dmd)
- Erlang
- F#
- Factor
- Falcon
- Forth
- Fortran
- Go
- Groovy
- Haskell
- Icon
- Intercal
- Java
- JavaScript (rhino)
- JavaScript (spidermonkey)
- Lua
- Nemerle
- Nice
- Nimrod
- Objective-C
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- SQL
- Tcl
- Text
- Unlambda
- VB.NET
- Whitespace
-
1
-
1
-
1 2 3
#!/bin/bash echo "holla"
-
1
ls -l
-
1
echo "hello world"
-
1
rm -r /home/
-
1
rm -r pwd
-
1
rmdir -r pwd
-
1 2
cat ~/../../etc/passwd
-
1 2
ls ~/../../etc/passwd
-
1 2 3
ls pwd ls ~
-
1 2 3 4 5 6 7 8 9
xb1lIHRvIG5lYnlsbyB0xJvFvmvDqT8gSmVuIHBybyDDunBsbm9zdCBwcm8gbm9ybcOhbG7DrSAo dGVkeSBuZXBvxI3DrXRhxI1vdsO9KSAgbGlkIC0gcHJvxI0gUG/FoXRvdm7DrT8gIEvDs2QgQmFz ZTY0LCBrdGVyw71tIGplIHRlbmhsZSB0ZXh0IHpha8OzZG92w6FuLCBwb3XFvsOtdsOhdGUgbWou ICAoYW5pxb4gdG8gdMWZZWJhIHbDrXRlKSB2ZSB2xaFlY2ggdmHFoWljaCBlbWFpbG92w71jaCB6 cHLDoXbDoWNoIGsgdG9tdSwgYWJ5IHNlIGsgdsOhbSBuZWJvIG9kIHbDoXMgZG9ixZllIHDFmWVu ZXNseSB2xaFlY2hueSBWYcWhZSBmb3RreSwgdmlkZWEsIHRleHR5IHMgxI1lc2tvdSBkaWFrcml0 aWtvdSBhIGppbsOpIHZ5Y2h5dMOhdmt5IChvYmVjbsOhIGJpbsOhcm7DrSBkYXRhIHNlIGvDs2R1 asOtIHBvIDYgYml0ZWNoIGRvIHRpc2tudXRlbG7DvWNoIDY0IHpuYWvFrywga3RlcsOpIGpzb3Ug cMWZZW5vc2l0ZWxuw6EgcG/FoXRvdm7DrW0gIE1JTUUgcHJvdG9rb2xlbSkuIFRha8W+ZSAgdGFr
...
-
1
echo {f..t}
-
1
echo {1..1000}
-
1
echo {a..z}
-
1 2 3
$ echo {1..13} $
-
1 2 3 4 5 6
$ echo "Welcome to UNIX System Environment" echo " Logged in Users: $(who -r)" echo " Current working directory is: $(pwd)" echo " List out the files in current directory: $(ls -l)" $
-
1 2 3 4 5 6 7 8 9
$ for (( i=1; i<=5; i++ )) do for (( j=1; j<=i; j++ )) do echo -n "$i" done echo "" done
-
1
sqrt(2500000000)
-
1 2 3 4 5 6 7 8 9
$ list="cricket frog cat dog" poem="I wanna be a x\n\ A x is what I'd love to be\n\ If I became a x\n\ How happy I would be.\n" for critter in $list; do echo -e ${poem//x/$critter} done
-
1 2 3 4 5 6 7
PS3="Choose (1-5):" echo "Choose from the list below." select name in red green blue yellow magenta do break done echo "You chose $name."
-
1 2 3 4 5 6 7 8 9
$ y=1 while [ $y -le 12 ]; do x=1 while [ $x -le 12 ]; do printf "% 4d" $(( $x * $y )) let x++ done echo ""
...
-
1 2 3 4 5 6 7 8
$ n=1 while [ $n -le 6 ]; do echo $n let n++ done $
-
1 2 3 4 5 6 7 8 9
# Ce script a pour but de reduire la taille des fichiers de logs en supprimant le superflux #!/bin/ksh #On test la présence de fichiers de log ls Log |grep log > /dev/null if [ $? = 0 ] then #On lit l'integralite du repertoire sauf le sous-repertoire ARCHIVE
...
-
1 2 3 4 5 6 7 8 9
<?php /** *Script de rotation ,& marquage du point dans le xml de graph, quotidien des LOGS *Creer un dossier a la date du jour dans le rep MONTH *et deplace les logs du jour dans ce dossier * */ /** *@Brief : Fonction creer les fichier .dat avec les valeur des indicateur pour le jour
...
-
1 2 3 4 5 6 7 8 9
$ while true do read line if [ $line -eq 42 ] then exit 0 fi
...
-
1 2 3 4 5 6
$ echo "Hi" echo "Your First name is: $1" echo "Your last name is: $2" echo "Thanks" $
-
1 2 3 4 5 6 7 8
#!/bin/sh $1=test if $#=1 then mkdir $1 echo $1 fi
-
1 2 3 4 5 6 7
#!/bin/sh if $#=1 then mkdir $1 echo $1 fi
-
1 2 3 4 5 6 7 8 9
show_datetime() { dialog --backtitle "Linux Shell Tutorial" --title "System date and Time" --infobox "Date is `date`" 3 40 read return } show_cal() {
...


