Re: Shell Script Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 9 Jul 2008, Joseph L. Casale wrote:

What's the simplest way to increment the number 0000 up by one until some other 4 digit number while
preserving leading zero's until the 1000's has a digit other than 0?

In zsh, it would be something like:

for i in {0000..9999}; do
	echo $i
done

-steve
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux