Skip to content

Instantly share code, notes, and snippets.

@rfjakob
Created January 21, 2025 20:42
Show Gist options
  • Save rfjakob/411d5b77bb39322eee3aca769b1d9577 to your computer and use it in GitHub Desktop.
Save rfjakob/411d5b77bb39322eee3aca769b1d9577 to your computer and use it in GitHub Desktop.
!/bin/bash
set -eu
m1000() {
for i in $(seq 100) ; do
D=mtest.$BASHPID.$i/foo/bar/baz
mkdir -p $D
touch $D/foo $D/bar
echo AAAAAAAAAAAAAAAAAAAAA > $D/foo
rm $D/foo
mkdir $D/baz
done
}
rm -Rf mtest.*
echo .
m1000 &
m1000 &
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment