Skip to content

Instantly share code, notes, and snippets.

@dietercastel
Last active July 25, 2020 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dietercastel/e1ff727b2a4968f60856f966e200ce23 to your computer and use it in GitHub Desktop.
Save dietercastel/e1ff727b2a4968f60856f966e200ce23 to your computer and use it in GitHub Desktop.
Moving screenshots using julia
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