From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <762ba12fb04afe6b6793ea4500590b4b@felloff.net> Date: Thu, 24 Nov 2016 09:56:15 +0100 From: cinap_lenrek@felloff.net To: 9fans@9fans.net In-Reply-To: <6D3B924C-6701-4345-8768-98D7927DD9DD@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] How to take a portion of a screenshot Topicbox-Message-UUID: af07a652-ead9-11e9-9d60-3106f5b1d025 rc variables are lists, and $#var evalulates to the length of the list... you can use that to make counters by concatenating elements to a list: term% a=() while(! ~ $#a 13){echo $#a $a; a=(1 $a);} 0 1 1 2 1 1 3 1 1 1 4 1 1 1 1 5 1 1 1 1 1 6 1 1 1 1 1 1 7 1 1 1 1 1 1 1 8 1 1 1 1 1 1 1 1 9 1 1 1 1 1 1 1 1 1 10 1 1 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 1 1 1 12 1 1 1 1 1 1 1 1 1 1 1 1 -- cinap