aboutsummaryrefslogtreecommitdiffstats
path: root/192
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-01-01 17:05:36 +0000
committerterminaldweller <devi@terminaldweller.com>2024-01-01 17:05:36 +0000
commit1572b42a4a25d7dd6f4e200f6bfa107f63070da6 (patch)
tree9f425a80f968b429e0ef7e7289d7102081d6d4ae /192
parent193 (diff)
downloadleetcode-1572b42a4a25d7dd6f4e200f6bfa107f63070da6.tar.gz
leetcode-1572b42a4a25d7dd6f4e200f6bfa107f63070da6.zip
192
Diffstat (limited to '192')
-rwxr-xr-x192/main.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/192/main.sh b/192/main.sh
new file mode 100755
index 0000000..7ddcbf8
--- /dev/null
+++ b/192/main.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+for word in $(cat ./file.txt); do echo $word;done | sort | uniq -c | sort -nr | awk '{temp=$1; $1=$2; $2=temp; print}'