Skip to content

A versatile script for searching, copying, and unzipping files based on specific patterns. This tool is ideal for organizing files in bulk, especially when dealing with a mix of directories and file types.

License

Notifications You must be signed in to change notification settings

jacobfh1/FileOrganizerTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

FileOrganizerTool

A versatile script for searching, copying, and unzipping files based on specific patterns. This tool is ideal for organizing files in bulk, especially when dealing with a mix of directories and file types.

Features

  • Search for files based on a user-defined pattern.
  • Copy matched files to a designated directory.
  • Unzip specific files within the designated directory.

Prerequisites

Before using the script, ensure you have both parallel and unzip installed on your system. If not, you can install them using the following commands:

For Ubuntu/Debian-based systems:

sudo apt update
sudo apt install parallel unzip

For macOS (using Homebrew):

brew install parallel
brew install unzip

Configuration

Before running the script, you should configure it to match your needs:

  1. FILE_PATTERN: Define the file search pattern. Adjust this to match your specific needs. By default, it's set to "*Sample*", which will search for all files containing "Sample" in their names.

  2. OUTPUT_PARENT_DIR: This is the parent directory where the copied files will be stored. By default, it's "OutputDirectory". Change this name if needed.

  3. DEST_SUB_DIR: This is the directory inside the OUTPUT_PARENT_DIR where the files will be copied to. By default, it's set to a subdirectory named SubDir. Adjust this if you have a different naming preference.

Usage

  1. Adjust the configuration parameters in the script as needed.
  2. Run the script:
./process_files.sh
  1. Monitor the progress as the script identifies, copies, and unzips files.

Contributions

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

License

Distributed under the MIT License. See LICENSE for more information.

About

A versatile script for searching, copying, and unzipping files based on specific patterns. This tool is ideal for organizing files in bulk, especially when dealing with a mix of directories and file types.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages