From 85eadd9e41a9f3d47fb37b5803833d966119c423 Mon Sep 17 00:00:00 2001 From: Alter Alexandr Telyatnikov Date: Sat, 11 May 2019 14:16:39 +0300 Subject: [PATCH] fix info about 'sort' parameters some (newer ?) versions of sort doesn't handle +2 parameter, -k3 should be used instead --- langstats/readme.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/langstats/readme.txt b/langstats/readme.txt index 8e7a38b..31b2277 100644 --- a/langstats/readme.txt +++ b/langstats/readme.txt @@ -12,6 +12,9 @@ Steps: - Produce character frequency table by running charstats on the chunk, as: mkcharstats french/french_cp1252.txt | sort -nr +2 > \ french/charstats_french_cp1252.txt + or (for other versions of sort) + mkcharstats french/french_cp1252.txt | sort -nr -k3 > \ + french/charstats_french_cp1252.txt - Edit the resulting file, Just get rid of a few lines that break the following step (the first one, the last one and the one for space (0x20)