From ddaaf9fa7d1ad873b6059af30dc35b2008dae2b5 Mon Sep 17 00:00:00 2001 From: Florian N Date: Fri, 31 Jan 2014 22:26:40 -0500 Subject: [PATCH] Delete test.py --- test.py | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 test.py diff --git a/test.py b/test.py deleted file mode 100644 index 3e8c4cd..0000000 --- a/test.py +++ /dev/null @@ -1,10 +0,0 @@ -import os - -# open a pipe to "df ...", read from its stdout, -# strip the trailing \n, split it into a list on -# every \n, and put the results in 'data' -pipe = os.popen("df -Ph | " + "grep --color=never -E '^/dev' | " + "awk '{print $1, $2, $3, $4, $5, $6}'") -data = pipe.read().strip().split('/n') -pipe.close() - -print data