Free Ideone API
try it now!
Your great ideas will be born here
Recent public pastes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- 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
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- Tcl
- Text
- Unlambda
- Visual Basic .NET
- Whitespace
-
1 2 3 4 5 6 7 8 9
#!/bin/bash # spawn.sh PIDS=$(pidof sh $0) # Process IDs of the various instances of this script. P_array=( $PIDS ) # Put them in an array (why?). echo $PIDS # Show process IDs of parent and child processes. let "instances = ${#P_array[*]} - 1" # Count elements, less 1. # Why subtract 1?
...
-
1 2 3 4 5 6 7 8 9
#!/bin/bash # stupid-script-tricks.sh: Don't try this at home, folks. # From "Stupid Script Tricks," Volume I. dangerous_variable=`cat /boot/vmlinuz` # The compressed Linux kernel itself. echo "string-length of \$dangerous_variable = ${#dangerous_variable}" # string-length of $dangerous_variable = 794151
...
-
1 2 3 4 5 6 7 8 9
#!/bin/bash # agram.sh: Playing games with anagrams. # Find anagrams of... LETTERSET=etaoinshrdlu FILTER='.......' # How many letters minimum? # 1234567 anagram "$LETTERSET" | # Find all anagrams of the letterset...
...
-
1 2 3 4 5 6 7 8 9
#!/bin/bash # horserace.sh: Very simple horserace simulation. # Author: Stefano Palmeri # Used with permission. ################################################################ # Goals of the script: # playing with escape sequences and terminal colors. #
...
-
1 2 3 4 5 6 7 8 9
#!/bin/bash # Draw-box.sh: Drawing a box using ASCII characters. # Script by Stefano Palmeri, with minor editing by document author. # Minor edits suggested by Jim Angstadt. # Used in the ABS Guide with permission. ######################################################################
...
-
1
wc -c "hola"
-
1
cat /etc/passwd
-
1 2
cat /etc/user cat /etc/group
-
1 2
cat /etc/users cat /etc/groups
-
1 2 3 4
#!/bin/bash echo $USER echo $PWD env
-
1 2 3
#!/bin/bash echo $USER echo $PWD
-
1 2
#!/bin/bash echo $ENV
-
1 2 3 4 5 6 7 8 9
#!/bin/bash while true do read line if [ $line -eq 42 ] then exit 0 fi echo ${line}
-
1 2
$test = "a1 a2 a3" grep a3 $test
-
1 2 3 4 5 6 7 8 9
#include <stdio.h> #define LST “ls” int main() { int pid, k=5, status; printf( “ Stoinostta na k = %d;”, k-2 );
...
-
1 2 3 4 5 6 7 8 9
#!/bin/bash while true do read line if [ $line -eq 42 ] then exit 0 fi echo $line
-
1
echo $#
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -z “$listpar“ ] then echo 867553435
...
-
1 2 3 4 5 6 7 8 9
for var in a1 a2 a3 do set $var done shift listpar=` echo $* ` if [ -n “$listpar“ ] then echo 867553435
...
