Skip to content

Instantly share code, notes, and snippets.

@yilas
Created February 22, 2016 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yilas/7d7d498e08d507a4fcca to your computer and use it in GitHub Desktop.
Save yilas/7d7d498e08d507a4fcca to your computer and use it in GitHub Desktop.
import os
scsi = os.popen('lsscsi').read().rstrip().split('\n')
for l in [s.split() for s in scsi]:
print l[0], l[-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment