Re: cat problem
From: Stephane CHAZELAS (this.address_at_is.invalid)
Date: 11/07/04
- Next message: gregg: "Re: shell error codes"
- Previous message: Barry Margolin: "Re: shell error codes"
- In reply to: Weiguang Shi: "Re: cat problem"
- Next in thread: Kevin Rodgers: "Re: cat problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 07 Nov 2004 19:12:45 GMT
2004-11-7, 18:12(+00), Weiguang Shi:
> Thanks for the help!
>
> Stephane CHAZELAS wrote:
>>Note that with zsh, you don't need seq.
>>
>>for i in {1..9}
> Nice albeit incompatible.
[...]
Should be compatible with any reasonably recent version of zsh
and with bash versions 3.0 or above.
On the other hand, seq works only on GNU systems.
>>for ((i=1; i<=9; i++))
[...]
That one works with zsh, ksh93 and bash 2.04 or above.
-- Stephane
- Next message: gregg: "Re: shell error codes"
- Previous message: Barry Margolin: "Re: shell error codes"
- In reply to: Weiguang Shi: "Re: cat problem"
- Next in thread: Kevin Rodgers: "Re: cat problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|