From 304d35fa7d8cfc1178f7647b707f81efa3c020ae Mon Sep 17 00:00:00 2001 From: Sebastian Cabrera Date: Thu, 13 Mar 2025 18:40:33 -0400 Subject: [PATCH] Update README --- README.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8c6dbd0..27121d9 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,28 @@ Manages macOS Dock settings. - `reset` - Reset Dock to default settings ### `movefiles.sh` -Moves files from one location to another based on file type. +Moves files from one location to another based on a search word in the filename. ```bash -./scripts/movefiles.sh [source_dir] [destination_dir] +./scripts/movefiles.sh [options] ``` -- `source_dir` - Source directory containing files to move -- `destination_dir` - Destination directory for organized files +Options: +- `-v, --verbose` - Show detailed output +- `-p, --include-part` - Include files ending in .part (excluded by default) +- `-h, --help` - Show help message + +Example: +```bash +./scripts/movefiles.sh -v "document" ~/Downloads ~/Documents +``` + +Features: +- Searches for files containing the specified word in their filename (case-insensitive) +- Excludes .part files and macOS resource fork files by default +- Creates destination directory if it doesn't exist +- Shows preview of files to be moved before proceeding +- Asks for confirmation before moving files +- Reports number of files moved after completion ## Installation