#!/bin/bash array=($(ps -ef)) echo "" > /var/www/testy/ps.html; for ((i=0; i<=70; i++)); do echo "" >> /var/www/testy/ps.html; if (( i/8 == 1 ));then echo "" >> /var/www/testy/ps.html; fi done echo '
${array[i]}
' >> /var/www/testy/ps.html;