Created
June 28, 2016 10:02
-
-
Save Swarchal/eaf131fbcf6326c0f01bbd1259d6202f to your computer and use it in GitHub Desktop.
get file names from path name
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
| out_file = open("/home/scott/just_files.txt", "w") | |
| for line in open("out_test.txt", "r").readlines(): | |
| out_file.write(line.split("/")[-1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment