Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 16 lines (14 sloc) 283 Bytes
#!/bin/sh
racepart()
{
input=$1
echo $input > tmpfile
#sleep 0.$((RANDOM*3)) # optional
cat tmpfile 2>/dev/null
rm -f tmpfile
}
for i in $(seq 1 10) ; do
# & backgrounds the process to do parallel processing
racepart $i &
done > ../out/race-result
wait