---
title: "Comment by Utsav Gohel on \"Day 5 Task: Advanced Linux Shell Scripting for DevOps Engineers with User management\" | Hashnode"
description: "In Question 1 folder start and end are static to convert it dynamic use this code &quot;#!/bin/bash directoryName=$1 startNumberOfDirectory=$2 endNumberOfDirect"
url: "https://hashnode.com/posts/day-5-task-advanced-linux-shell-scripting-for-devops-engineers-with-user-management/644ac083a529f902473112c5/comment/64cb5ffd38b248b9c360ac67"
---

[Discussion](https://hashnode.com/posts/day-5-task-advanced-linux-shell-scripting-for-devops-engineers-with-user-management/644ac083a529f902473112c5)

Comment [Day 5 Task: Advanced Linux Shell Scripting for DevOps Engineers with User management](https://hashnode.com/posts/day-5-task-advanced-linux-shell-scripting-for-devops-engineers-with-user-management/644ac083a529f902473112c5)

[Utsav Gohel](https://hashnode.com/@utsavgohel)

[Aug 3, 2023](https://hashnode.com/posts/day-5-task-advanced-linux-shell-scripting-for-devops-engineers-with-user-management/644ac083a529f902473112c5/comment/64cb5ffd38b248b9c360ac67)

In Question 1

folder start and end are static  
to convert it dynamic

use this code

"#!/bin/bash

directoryName=$1 startNumberOfDirectory=$2 endNumberOfDirectory=$3

for num in $(seq "$2" "$3"); do mkdir $1_$num echo "$1_$num Directory created" done "
