2021-04-27 12:18:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
i=$1
|
|
|
|
|
2021-04-27 14:33:37 +00:00
|
|
|
cut ${i}_machine_locality/part-00000 -d, -f2-3 | \
|
2021-04-27 12:18:14 +00:00
|
|
|
sort | uniq -c | sed 's/^\s*//' | tr ' ' ',' | \
|
2021-04-27 14:33:37 +00:00
|
|
|
awk 'BEGIN {print "count,term,machine_locality"} {print $0}' > ${i}_term_machine_locality.csv
|