Bash for Loop in one-line 04 Nov 2021 bash command Write N times for loop in bash one-line. $ for i in {1..10}; do echo $i ; done The output: 1 2 3 4 5 6 7 8 9 10 See also 10 Bash for Loop In One Line Examples - howtouselinux Load more