Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
splitting and assigning
- X-seq: zsh-users 18848
- From: meino.cramer@xxxxxx
- To: zsh-users@xxxxxxx
- Subject: splitting and assigning
- Date: Sat, 24 May 2014 07:43:23 +0200
- 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
Hi,
I have a looooooong list, whgich consists
of a 32 character long checksum (from md5sum),
two spaces and a absolute path with the checksummed file.
I want to split each line into two parts:
the checksum and the path/file and assign each part
to a separate variable.
I tried to put this into a one-liner and failed using
${(s: :)line}.
How can I do that?
Best regards and have a nice weekend!
Best regards,
mcc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author