#!/bin/bash
for ((i=1; i < 150; i++)); do
if [[ $i<10 && $i>=0 ]] ; then
out="00$i"
fi
if [[ $i<100 && $i>=10 ]] ; then
out="0$i"
fi
if [[ $i<1000 && $i>=100 ]] ; then
out="$i"
fi
echo $out
done001
001
001
001
001
001
001
001
001
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
010
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100echo -e "\n"PC-{001..150}
for i in {0..150}; do printf "%03d\n" $i; done
#!/bin/bash
for ((i=1; i < 150; i++)); do
if [[ $i -lt 10 && $i -ge 0 ]] ; then
out="00$i"
fi
if [[ $i -lt 100 && $i -ge 10 ]] ; then
out="0$i"
fi
if [[ $i -lt 1000 && $i -ge 100 ]] ; then
out="$i"
fi
echo PC-$out
done