#!/bin/bash
echo " "
echo -n "Enter Number : "
read num
i=1
while [ $i -le $num ]
do
j=1
while [ $j -le $i ]
do
echo -n "*"
j=`expr $j + 1`
done
echo " "
i=`expr $i + 1`
done
echo " "
echo -n "Enter Number : "
read num
i=1
while [ $i -le $num ]
do
j=1
while [ $j -le $i ]
do
echo -n "*"
j=`expr $j + 1`
done
echo " "
i=`expr $i + 1`
done
echo " "
echo -n "Enter Number : "
read num
i=1
while [ $i -le $num ]
do
j=1
nu=`expr $i - 1`
while [ $j -le $nu ]
do
echo -n " "
j=`expr $j + 1`
done
while [ $j -le $i ]
do
echo -n "*"
j=`expr $j + 1`
done
echo " "
i=`expr $i + 1`
done
'os > Linux' 카테고리의 다른 글
[실습] 웹서버구축 (0) | 2014.10.28 |
---|---|
[실습] 자동, 수동 ip 설정 (0) | 2014.10.28 |
[실습] 구구단 (0) | 2014.10.28 |
[실습] shell script (0) | 2014.10.28 |
[실습] 2. LVM & RAID (0) | 2014.10.28 |
댓글