#!/bin/bash #-----CHANGE IT------ HTML="../rozklad" lines=(KORN42 MURA42 OPL01 ORZE42 RKAP73 SOB42 UAMB01) #------------------- mkdir -p ./lines LINE=$1 output=$(echo "\$output") for line in "${lines[@]}"; do cat << EOF > lines/$line.php $output"; ?> EOF done #CREATE INDEX cat << EOF > index.php