Home » How ToBash execute a command N timesAugust 7, 2022 bash 1 minTable of ContentsHow to run a command n times in bashHow to run a command n times in bash¶1 for i in {1..N}; do COMMAND; done Please enable JavaScript to view the comments powered by Disqus.