Giter Site home page Giter Site logo

benjdum59 / filterroms Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 2.0 70 KB

Script for filtering roms depending on the name pattern

License: MIT License

Shell 100.00%
roms arcade-game arcade shell filter unix special-characters recalbox emulator emulation

filterroms's Introduction

Build status:

master: Build Status develop: Build Status codacy: Codacy Badge

FilterRoms

Introduction

These tool is design to help people to filter roms using some official pre-defined patterns. This product has been written for Mac OS and should work on all Unix system. As command line arguments/results may differ between these OS, there is no guarantee to work on Unix system. Please give me your feedback! May also work on Windows using a unix simulator (Cygwin, Git Bash...).

Pre-requisite

  • Mac OS / Unix system
  • 7z in command line (p7zip on Mac OS)

Usage

Configure the pattern.txt file. You can use the RomSuffixCode.txt to determine the patterns you want.

Warning: consider all patterns will be treated together (logical AND)

Put your compressed rom files in input directory.

If there is an output directory, please ensure it is empty.

You can now run the following command:

./filterRoms.sh

Optional: you can define some pattern to exclude in the excluions.txt file

Output

Because of the f*** exclamation mark character, I was not able to uncompressed the desired files. If you have a solution, I would appreciate.

So, the script creates output/7zCommands.txt file. You can open the file, select and copy all and then paste it in the terminal and press Enter. The files should be uncompressed inside output folder.

Limitations

  • Only works with these kind of archive: 7z, zip, tar, tgz, tbz2, tar.gz, gz, rar
  • Works with regular files too
  • Only uncompress 1st level of hierarchy (does not uncompress archive of archive of archive...)
  • Avoid using paths with spaces or some special characters (it is so much pain in the a** to treat them). So put the product in a "normal" path. However, files with special characters or spaces should work (if not please tell me).

filterroms's People

Contributors

benjdum59 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.