From c57807815e7b2183b766d5f2b52222c30a116475 Mon Sep 17 00:00:00 2001 From: neodarz Date: Thu, 14 Feb 2019 12:49:30 +0100 Subject: Add more good cheats --- cheat/.cheat/magnetico | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cheat/.cheat/magnetico (limited to 'cheat/.cheat/magnetico') diff --git a/cheat/.cheat/magnetico b/cheat/.cheat/magnetico new file mode 100644 index 0000000..5fb96bf --- /dev/null +++ b/cheat/.cheat/magnetico @@ -0,0 +1,5 @@ +# Get size file discovered +size=0; for el in $(sqlite3 ~/.local/share/magneticod/database.sqlite3 "select size from files"); do ((size+=el)); done; echo $size | awk '{ byte =$1 /1024/1024/1024; print byte " GB" }' + +# Get torrent number +sqlite3 ~/.local/share/magneticod/database.sqlite3 "select count(*) from torrents" -- cgit v1.2.1