Skip to content

Commit

Permalink
and sort results descending
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Mar 26, 2024
1 parent ea94bc2 commit 5ac7586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tutorials-faucets.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ this will only list the drips which happened withing the current reputation life
If you want to know, how many accounts have use the faucet how many times, use this:

```bash
nctr-k list-commitments 0 --cid kygch5kVGq7 | awk -F',' '{print $4}' | sort | uniq -c | tee >(wc -l | awk '{print "Total unique accounts:", $1}')
nctr-k list-commitments 0 --cid kygch5kVGq7 | awk -F',' '{print $4}' | sort | uniq -c | sort -nr | tee >(wc -l | awk '{print "Total unique accounts:", $1}')
# 1 5CXuNeCvhb3qbPw2TjcKYdghamJcfkq6SavKmN5fQ1beUDH5
# 2 5DceiYnUBdRx2bPjPFN2EjYm7VvaVnCB6Sp4qSjuYP4Qbd65
# 1 5Dhb315DK5T5f5Y59CsfCApv5HBb1CFzCv4zPMfsvW1t52JF
Expand Down

0 comments on commit 5ac7586

Please sign in to comment.