Added scripts and examples

This commit is contained in:
2023-12-31 16:40:50 -06:00
parent e1305db4e7
commit 1f97599eb3
5 changed files with 218 additions and 6 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/bash
sed '0,/^#EOF#$/d' $0 | tar zx; exit 0
#EOF#

15
src/Shell/sleep-sort.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# ./sleep-sort.sh 5 3 6 3 1 4 7
function f() {
sleep "$1"
echo "$1"
}
while [ -n "$1" ]; do
f "$1" &
shift
done
wait