Skip to content

Instantly share code, notes, and snippets.

@cdodd
Created February 20, 2020 22:06
Show Gist options
  • Save cdodd/6a8de663630f97eef1c3ac43436c8939 to your computer and use it in GitHub Desktop.
Save cdodd/6a8de663630f97eef1c3ac43436c8939 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import sys
import subprocess
data = subprocess.run(['ls', '-l'], stdout=subprocess.PIPE).stdout.decode('utf-8').split('\n'))
for line in data:
items = line.split('.')
for element in items[15:-1]:
try:
sys.stdout.write(chr(int(element)))
except ValueError:
pass
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment