Created
June 7, 2017 22:29
-
-
Save ricklentz/2acbcae1a9161d80893a261d01042918 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import os | |
| dir = r'/home/...' | |
| for filename in os.listdir(dir): | |
| with open(dir + '/' + filename, encoding='utf-8') as f: | |
| for idx, line in enumerate(f): | |
| print(filename + ' ' + str(idx)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment