Skip to main content
  1. How To/

Bash execute a command N times

·17 words·1 min
Ravi Singh
Author
Ravi Singh
Software engineer with 15+ years building backend systems and cloud platforms across fintech, automotive, and academia. I write about the things I build, debug, and learn — so I don’t forget them.

How to run a command n times in bash
#

for i in {1..N}; do COMMAND; done 

Discussion