I can get a list of files with similar names. What I'm trying to do is get a new file so that it can be manipulated. With glob, I can get all files, but not specific ones.
Here is my sample code:
permissionCurrentDate = '\n'.join(glob.iglob(os.path.join("PermissionsOnSystems*")))
Here is the result when I print it:
PermissionsOnSystems2.txt PermissionsOnSystems20170313-144036.txt
I want just PermissionsOnSystems20170313-144036.txt .
How can i do this?
Thanks!
source share