echo -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