Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Most frequent history words
- X-seq: zsh-users 21490
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Most frequent history words
- Date: Mon, 25 Apr 2016 12:36:05 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=tl9wnaxdGmKlM+9wJG7OJNmdNfJ0jDLSiv9T//B9j4E=; b=ElnkCgV9CNnA5cWVAlXY6lwwg60SDVi89x5mE3sV5t07/oelDw1uzntT81I9HfMcRT E3IluzoUe5oJt4Z+iIZwdU113fTBgBEbTz9Lc2Yy3slvAcdSQbCatHhBaUdfzSB2eJDQ czvXuCMBxrgM97VVoAIa1rPohtLwjSKFDmzlz4rCaFka+iCrlpwbFRGF4ewfgEEQNc23 QTHI0fyccoRSCpPUFtKCXCt4DSklvpV5YUcWQG5JjCZq54l4x/15NI4rtDUuZNv9el5a NG4L0QzBjiSs6zUFp8xIHZb9TncQASiEv2szrKDkIsMBlbbkTL3VWmETSyXuQDIhCX3n VXzQ==
- 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
Hello,
can the following be made less coreutils dependent, i.e. more pure-Zsh code?
print -rl "${historywords[@]}" | sort | uniq -c | sort -k1,1nr -k2,2 | head
The goal is to list most frequent history words.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author