Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
16
Task/JortSort/UNIX-Shell/jortsort.sh
Normal file
16
Task/JortSort/UNIX-Shell/jortsort.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
JortSort() {
|
||||
cmp -s <(printf “%s\n” “$@“) <(printf “%s\n” “$@“ | sort)
|
||||
}
|
||||
|
||||
JortSortVerbose() {
|
||||
if JortSort “$@“; then
|
||||
echo True
|
||||
else
|
||||
echo False
|
||||
If
|
||||
}
|
||||
|
||||
JortSortVerbose 1 2 3 4 5
|
||||
JortSortVerbose 1 3 4 5 2
|
||||
JortSortVerbose a b c
|
||||
JortSortVerbose c a b
|
||||
Loading…
Add table
Add a link
Reference in a new issue