Update README

This commit is contained in:
Sebastian Cabrera 2025-03-13 18:40:33 -04:00
parent 55be36eb70
commit 304d35fa7d

View file

@ -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] <search_word> <source_directory> <destination_directory>
```
- `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