๐Ÿ“ฆ NeoHuncho / script-utils

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/NeoHuncho/script-utils.git
HTTPS git clone https://github.com/NeoHuncho/script-utils.git
SSH git clone git@github.com:NeoHuncho/script-utils.git
CLI gh repo clone NeoHuncho/script-utils
William Guinaudie William Guinaudie Merge branch 'main' of https://github.com/NeoHuncho/script-utils bf8fd81 9 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“„ compress-files.sh
๐Ÿ“„ list-extensions.sh
๐Ÿ“„ organise-comics.py
๐Ÿ“„ README.md
๐Ÿ“„ README.md

script-utils

This project contains two utility shell scripts for processing files in a directory.

Files

Scans a given directory and lists all file extensions found, along with the number of occurrences and percentage of the total. Processes video and image files within a directory:
  • Compresses video files (e.g., mp4, mov, mkv) using ffmpeg.
  • Compresses image files (e.g., jpg, png, heic) using ImageMagick's convert.
  • Logs processing details in compression.log and errors in error.log.

Requirements

  • ffmpeg: Required for video processing.
  • ImageMagick (convert): Required for image processing.
  • Compatible with macOS (uses BSD utilities and options).

Usage

list-extensions.sh

```sh ./list-extensions.sh