11 lines
299 B
Bash
Executable File
11 lines
299 B
Bash
Executable File
#!/bin/sh
|
|
transmission-remote "$1" -l | grep % |
|
|
sed " # The letters are for sorting and will not appear.
|
|
s/.*Stopped.*/A /;
|
|
s/.*Seeding.*/Z /;
|
|
s/.*100%.*/N /;
|
|
s/.*Idle.*/B ﭦ/;
|
|
s/.*Uploading.*/L /;
|
|
s/.*%.*/M /" |
|
|
sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' ' -
|