Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Rotate words in string
- X-seq: zsh-users 21535
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Roman Neuhauser <neuhauser@xxxxxxxxxx>
- Subject: Re: Rotate words in string
- Date: Tue, 10 May 2016 14:36:38 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Kaq+x8BKlASuNxpU3VN7NF7lQYSfmMzY6THQ7WXc82U=; b=VM+R6rN2wUn2RfPqhDK86273OokWjwnyfLFzJwwjc4uyUIt+CKVmRiMjthbJ+OzcBc yIF7DDTQB43h1iChEC+jOQqN1S2fImgwAFtbozqbRnkx8WKltQuk5Hf7UEUun8ZJiCBk /yWtEG90mNp9hsik0V1EFlr7lsKdJpsmCjHjZ+BH3SdwIBTI7S+j5LfzA3ARJRVfwpD/ jwH+nVWanw6BEbw8rg0DkOVRdjhE1gWXcRMtyb1I3M8c1r/l2+FT9gsxUETVi4YdGUXy xG4t9FstuopSB9zxB+861WjHQyCKAylJ9hh6l8hFnQcsDx3mZ1snqE5+daTGgDvOgvAn 6A+g==
- In-reply-to: <20160510102600.GB3514@isis.sigpipe.cz>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVA+CTn2Zj=Eg9Zf7D63-jJRtrQe67oDXH6kLB4+5peTLg@mail.gmail.com> <20160510102600.GB3514@isis.sigpipe.cz>
On 10 May 2016 at 12:26, Roman Neuhauser <neuhauser@xxxxxxxxxx> wrote:
> turn it into an array, then:
>
> words=($words[-1] $words[1,-2])
Thanks
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author