Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Having random output from a file
- X-seq: zsh-users 16959
- From: Mark van Dijk <lists+zsh@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Having random output from a file
- Date: Mon, 2 Apr 2012 19:19:33 +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
- Organization: Internecto SIS
Hello,
I have a file that contains quotes that are separated by a blank line. Can zsh
help me to randomly output a quote from that file or should I use awk, or grep
or so? Should the first quote be prefaced by a blank line?
Thanks for helping me,
-Mark.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author