Sorting algorithms/Quicksort: Difference between revisions
→{{header|UnixPipes}}
Line 446:
qsort() {
lc=
gc=
(
read pivot;
do
done
test "$pivot" != '' && ( (cat -s $lc | qsort $lc ); echo $pivot; (cat -s $gc | qsort $gc ))
▲ case $pivot in
rm
)
}
cat to.sort | qsort
|