Sleep sort using BaSH

From NAT, 6 Years ago, written in Bash, viewed 776 times.
URL https://code.nat.moe/view/f76ce196 Embed
Download Paste or View Raw
  1. #!/bin/bash
  2.  
  3. function output {
  4.         sleep $1       
  5.         echo -n "$1 "
  6. }
  7.  
  8. function sort {
  9.         for i in $*
  10.         do
  11.                 output $i &
  12.         done
  13. }
  14.  
  15. sort $*
  16. wait

Replies to Sleep sort using BaSH rss

Title Name Language When
Re: Sleep sort using BaSH NAT bash 6 Years ago.

Reply to "Sleep sort using BaSH"

Here you can reply to the paste above

captcha