Skip to content

Instantly share code, notes, and snippets.

@avandrevitor
Created May 23, 2018 02:43
Show Gist options
  • Save avandrevitor/8e8cf28e8a9eb889676d43a263f325d2 to your computer and use it in GitHub Desktop.
Save avandrevitor/8e8cf28e8a9eb889676d43a263f325d2 to your computer and use it in GitHub Desktop.
Busca todos os arquivos com extensão mp4 na pasta atual e copia mantendo a hierarquia de pastas para o path /tmp/movies
#!/bin/bash
find . -name '*.mp4' -exec cp {} --parents /tmp/movies \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment