8 lines
195 B
Bash
8 lines
195 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
i=$1
|
||
|
|
||
|
cut ${i}_task_count/part-00000 -d, -f2-3 | \
|
||
|
sort | uniq -c | sed 's/^\s*//' | tr ' ' ',' | \
|
||
|
awk 'BEGIN {print "count,term,task_count"} {print $0}' > ${i}_term_task_count.csv
|