Created
February 20, 2020 22:06
-
-
Save cdodd/6a8de663630f97eef1c3ac43436c8939 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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