[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Bash for-loop; skriv tæller med forans tillede nuller?



On Sun, Mar 29, 2009 at 12:08 AM, Michael Rasmussen <sslug@sslug> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sat, 28 Mar 2009 23:48:05 +0100
> "Michael Schmidt" <sslug@sslug> wrote:
>
>>
>> Jeg fatter ikke hvorfor det virker, men det gør præcis som forventet.
> Hemmeligheden findes i 0 kombineret med 3d.
> 1) Udskriv tal i mængden 0..999 (3d)
> 2) Hvis tallet ikke fylder 3 pladser, da bliver der automatisk
> foranstillet 0'er (0)
> - --


Nu kan seq godt selv finde ud af det...

$ for i in $(seq 8 12);do echo $i;done

8
9
10
11
12

$ for i in $(seq -w 8 12);do echo $i;done

08
09
10
11
12

-- 
No trees were killed in the sending of this message
However, a large number of electrons were terribly inconvenienced.
Also, Wil Wheaton Says, "Don't be a dick!"


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-04-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *