diff options
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/get-card-brands.sh | 5 | ||||
| -rw-r--r-- | bin/get-card-types.sh | 5 | ||||
| -rw-r--r-- | bin/get-max-address-length.sh | 5 | ||||
| -rw-r--r-- | bin/get-max-merchant-length.sh | 5 | ||||
| -rw-r--r-- | bin/get-normalized-merchants.sh | 5 | ||||
| -rw-r--r-- | bin/get-transaction-use-chips.sh | 5 |
6 files changed, 30 insertions, 0 deletions
diff --git a/bin/get-card-brands.sh b/bin/get-card-brands.sh new file mode 100644 index 0000000..f0b00a5 --- /dev/null +++ b/bin/get-card-brands.sh | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -xe | ||
| 4 | |||
| 5 | cat res/cards_data.csv | tail -n +2 | cut -d, -f3 | sort -u | ||
diff --git a/bin/get-card-types.sh b/bin/get-card-types.sh new file mode 100644 index 0000000..c0103d3 --- /dev/null +++ b/bin/get-card-types.sh | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -xe | ||
| 4 | |||
| 5 | cat res/cards_data.csv | tail -n +2 | cut -d, -f4 | sort -u | ||
diff --git a/bin/get-max-address-length.sh b/bin/get-max-address-length.sh new file mode 100644 index 0000000..3ec8f2c --- /dev/null +++ b/bin/get-max-address-length.sh | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -xe | ||
| 4 | |||
| 5 | cat res/users_data.csv | tail -n +2 | cut -d, -f7 | sort -u | awk '{print length, $0}' | sort -rn | head -n 1 | cut -d' ' -f1 | ||
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 | ||
diff --git a/bin/get-normalized-merchants.sh b/bin/get-normalized-merchants.sh new file mode 100644 index 0000000..f10de8d --- /dev/null +++ b/bin/get-normalized-merchants.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 | tr '[a-z]' '[A-Z]' | tr ' ' '_' | ||
diff --git a/bin/get-transaction-use-chips.sh b/bin/get-transaction-use-chips.sh new file mode 100644 index 0000000..e655643 --- /dev/null +++ b/bin/get-transaction-use-chips.sh | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -xe | ||
| 4 | |||
| 5 | cat res/transactions_data.csv | tail -n +2 | cut -d, -f6 | sort -u | ||
