7 lines
213 B
Bash
Executable file
7 lines
213 B
Bash
Executable file
#!/bin/sh
|
|
|
|
i=$1
|
|
|
|
cut ${i}_machine_locality/part-00000 -d, -f2-3 | \
|
|
sort | uniq -c | sed 's/^\s*//' | tr ' ' ',' | \
|
|
awk 'BEGIN {print "count,term,machine_locality"} {print $0}' > ${i}_term_machine_locality.csv
|