diff options
| author | 2026-11-10 08:29:58 +0000 | |
|---|---|---|
| committer | 2026-11-10 08:33:56 +0000 | |
| commit | 776276d5c7e67356a880f3e31076d32cdc1c1882 (patch) | |
| tree | cbde131f3d46338adee9c67ac0f988295736bdd4 /bin/get-max-merchant-length.sh | |
| download | coursework-master.tar.gz | |
Diffstat (limited to 'bin/get-max-merchant-length.sh')
| -rw-r--r-- | bin/get-max-merchant-length.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/get-max-merchant-length.sh b/bin/get-max-merchant-length.sh new file mode 100644 index 0000000..09f2d7c --- /dev/null +++ b/bin/get-max-merchant-length.sh | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -xe | ||
| 4 | |||
| 5 | cat res/transactions_data.csv | tail -n +2 | cut -d, -f8 | sort -u | awk '{print length, $0}' | sort -rn | head -n 1 | cut -d' ' -f1 | ||
