commit 31c0d8b459b905d77ca93c4819a6fe77ac0e996c parent 5c02fc218b3a880c8a3e3802c9cacf7b8fe100ce Author: sin <sin@2f30.org> Date: Wed, 8 Oct 2014 11:30:13 +0100 Add rat-list Diffstat:
A | rat-list | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/rat-list b/rat-list @@ -0,0 +1,9 @@ +#!/bin/sh +# List friends + +IDS=$(ls |grep '[A-Z0-9]\{64\}') +for ID in $IDS; do + NAME=$(cat $ID/name) + STATUS=$(cat $ID/status) + printf "%s\t%s\t\t%s\n" $(echo $ID | cut -c-12) "$NAME" "$STATUS" +done