Write a shell script to print the following pattern 11 2 1 2 3 1 2 3 4 1 2 3 4 5




Write a shell script to print the following pattern

            1

            1 2

            1 2 3

            1 2 3 4

            1 2 3 4 5




Program =




#!/bin/bash

echo "Utsav Gohel  91900104011"

echo "Enter the lower limit  = "

read limit

echo"\n"

for((i=1;i<=limit;i++))

do

  for((j=1;j<=$i;j++))

    do

      echo -n "$j"

    done

    echo ""

done



Output =