diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-01-01 17:05:36 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-01-01 17:05:36 +0000 |
commit | 1572b42a4a25d7dd6f4e200f6bfa107f63070da6 (patch) | |
tree | 9f425a80f968b429e0ef7e7289d7102081d6d4ae | |
parent | 193 (diff) | |
download | leetcode-1572b42a4a25d7dd6f4e200f6bfa107f63070da6.tar.gz leetcode-1572b42a4a25d7dd6f4e200f6bfa107f63070da6.zip |
192
-rwxr-xr-x | 192/main.sh | 3 |
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}' |