Skip to content

Instantly share code, notes, and snippets.

@herotux
Last active August 8, 2019 11:20
Show Gist options
  • Save herotux/8689ce09ed839e636cbd1019bcec2ea9 to your computer and use it in GitHub Desktop.
Save herotux/8689ce09ed839e636cbd1019bcec2ea9 to your computer and use it in GitHub Desktop.
find mkv files in download directory and move them to videos
#!/bi/bash
find ~/Downloads -type f -name "*.mkv" -exec mv {} ~/Videos/new-movies \;
total= find ~/Downloads -type f -name "*.mkv"|wc -l
echo $total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment