From 27ba58ad99f4aefeef32a9a5c55d89b4c15a8c64 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Mon, 8 Nov 2021 20:28:06 +0000 Subject: [PATCH] word-frequency --- word-frequency/sol.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 word-frequency/sol.sh diff --git a/word-frequency/sol.sh b/word-frequency/sol.sh new file mode 100755 index 0000000..2231258 --- /dev/null +++ b/word-frequency/sol.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +grep -oE "[a-z]+" words.txt | sort -u | xargs -I{} sh -c 'echo {} $(grep -oP "(?