Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
aaa
#!/bin/bash # GNU bash, version 4.4.20 n=4 arr=(8 6 7 3) for((i=0;i<$n-1;i++)) do for((j=0;j<$n-$i-1;j++)) do if [ ${arr[j]} -gt ${arr[j+1]} ] then temp=${arr[j]} arr[j]=${arr[j+1]} arr[j+1]=$temp fi done done echo "The Sorted elements are" for((i=0;i<n;i++)) do echo ${arr[i]} done
run
|
edit
|
history
|
help
0
Testing behavior of set -e with functions and exit hooks
Just go away Dolls.EXE
<script>alert(1);</script>
a shell script to say good morning/afternoon/evening
008 prog1.sh
Alternative time out
dico.txt
jhbl
It crashes when I try it in an interactive terminal
mmm