Browse Source

Delete test.py

windows
Florian N 12 years ago
parent
commit
ddaaf9fa7d
  1. 10
      test.py

10
test.py

@ -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
Loading…
Cancel
Save