Code Monkey home page Code Monkey logo

command-video-files-extractor's Introduction

shell command for move video files to target directory and remove others

지정 디렉토리 아래의 디렉토리를 순회하며 비디오 파일을 검색하여 지정 디렉토리로 이동시키고 비디오 파일을 제외한 파일들은 삭제합니다. 지정 디렉토리에 같은 파일명이 있는 경우 파일명에 .{seq} 붙여 중복을 처리합니다.

torrent 에서 디렉토리에 잡스러운 파일들을 가득 남아 넣은 것에 빡쳐 제작함

example

before

video_dir -- 1.mkv
           - 2.avi
           - a_dir  - 1.mkv
                    - 2.wmv
           - b_dir  - 3.avi
                    - abc.html
                    - def.txt

run

./mv_video.sh video_dir

after

video_dir -- 1.mkv
           - 2.avi
           - 1.mkv.~1~
           - 2.wmv
           - 3.avi

command-video-files-extractor's People

Contributors

hansonkim avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.