#!/bin/bash suffix=$(date '+%Y.%m.%d-%H.%M.%S'.log) for ((i=1; i<=5; i++)) do filename="file$i$suffix" touch "$filename" chmod 444 $filename done