#!/bin/bash timestamp=$(date +%s); #create the files touch file1$timestamp.log file2$timestamp.log file3$timestamp.log file4$timestamp.log file5$timestamp.log previous=$? if [ $previous -eq 0 ] then echo "Files are created successfully" fi #Change the files Permission chmod 444 file1$timestamp.log file2$timestamp.log file3$timestamp.log file4$timestamp.log file5$timestamp.log previous=$? if [ $previous -eq 0 ] then echo "read only permissions updated to all the files" fi