#!/bin/sh DIR=monthly FILEPREFIX=monthlyfilename_ echo "mkdir -p $DIR" for m in `seq -w 01 12` do echo touch ${DIR}/${FILEPREFIX}2018${m} done