There are many times that I have created a shell file that lists a bunch of commands that I want to run. Typically I just run sh filename.sh
which will run them sequentially. I knew there had to be a linux command out there to run some number of lines in the file in parallel rather than running all of them sequentially. And there is, it is called parallel.
To run it I created a text file containing all the commands I wanted to run and then did:
parallel -P 3 -a <filename>
This ran 3 lines at the same time from the file. If the -P is not specified then it will run it based on the number of cores (100% utilization).
- Details
- Written by craig
- Category: blog
- Hits: 479
Last night Carroll County had a house fire. Our squad was due on it and so I went down to the fire house for the call. We made it to the house fire location but then were cleared from the call. Almost immediately we were requested to fill in at Westminster Station 3. We were there for approximately 1 hour before we were released and returned back home.
- Details
- Written by craig
- Category: blog
- Hits: 655
There are some tools that I have got used to or are more recent that I have found very useful in my coding/data/science life:
TMux
https://storage.googleapis.com/org-brechmos/conf-files/tmux.conf
vimrc
https://storage.googleapis.com/org-brechmos/conf-files/vimrc
My standard editor.
Oh-My-Zsh
https://github.com/robbyrussell/oh-my-zsh
Fuzzy Search
https://github.com/junegunn/fzf
- Details
- Written by craig
- Category: blog
- Hits: 521
Page 1 of 2