Last active
July 25, 2020 13:02
-
-
Save dietercastel/e1ff727b2a4968f60856f966e200ce23 to your computer and use it in GitHub Desktop.
Moving screenshots using julia
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
fromdir = "." # cd to e.g. the Desktop. | |
# Filters the read in directory | |
t = filter(x->startswith(x,"Screenshot"),readdir(fromdir)) | |
# Move every x in t to it's new location. | |
map(x->mv(x,"../screenshots/$x"),t) # x is replaced using string interpolation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment