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