diff options
author | EuAndreh <eu@euandre.org> | 2018-12-22 18:19:29 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-12-22 18:19:29 -0200 |
commit | d4e6648afd61205136c98fdc56cf151eb437a078 (patch) | |
tree | 4503e78d64133edeb8679c57d58ac96d6fef7e9e /scripts/sleepsort | |
parent | mrconfig.ini. (diff) | |
download | dotfiles-d4e6648afd61205136c98fdc56cf151eb437a078.tar.gz dotfiles-d4e6648afd61205136c98fdc56cf151eb437a078.tar.xz |
Move external scripts to bin/.
Diffstat (limited to 'scripts/sleepsort')
-rwxr-xr-x | scripts/sleepsort | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/scripts/sleepsort b/scripts/sleepsort deleted file mode 100755 index ea20fcb..0000000 --- a/scripts/sleepsort +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Taken from: -# https://www.quora.com/What-is-the-strangest-sorting-algorithm/answer/Nipun-Ramakrishnan - -function f() { - sleep "$1" - echo "$1" -} - -while [ -n "$1" ] -do - f "$1" & - shift -done - -wait - -# example usage: -# sleepsort 5 3 6 3 6 3 1 4 7 |