Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash for loop parallel

function task (){
  echo $1
}

for ((i = 1; i <= 10 ; i++)); do
  task $i &
done

wait
Comment

PREVIOUS NEXT
Code Example
Shell :: push an existing repository 
Shell :: find exec rm 
Shell :: sudo service network-manager restart no working 
Shell :: terminal save txt to clipboard 
Shell :: rpi install chomedriver 
Shell :: service redis restart 
Shell :: bash replace comma with newline 
Shell :: how to remove stuff from git 
Shell :: vlc media player download for fedora 
Shell :: kill running port in ubuntu using procees id 
Shell :: squash commit history git 
Shell :: check branches git 
Shell :: how to find all the dir in current working directory in linux 
Shell :: brew install supervisor mac 
Shell :: ubuntu install lamp 
Shell :: Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings. 
Shell :: find files size greater than 100mb in linux 
Shell :: root folders via gui ubuntu 
Shell :: yarn remove package 
Shell :: install laravel dompdf 
Shell :: bash count elements in string 
Shell :: docker remove dangling images 
Shell :: tv on ubuntu 
Shell :: git reset head to previous commit 
Shell :: git commit single file 
Shell :: extend recording time in ubuntu 
Shell :: linux ping a port 
Shell :: amend specific commit 
Shell :: how to install linux 
Shell :: conda install easydict 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =