Manages file organization through safe, predictable batch operations.
Create standard project layouts:
project/
├── src/ - Source code
├── docs/ - Documentation
├── tests/ - Test files
├── assets/ - Images, fonts, media
├── scripts/ - Build scripts, utilities
└── config/ - Configuration files
mv - Single filefind . -name "*.ext" -exec mv {} / \; - Batch by extensionPatterns:
file_{001..100}.txtYYYY-MM-DD_descriptionSafe approach:
echo commands first (dry run)echo, executeGroup files by extension into folders:
mkdir -p images docs code
find . -name "*.png" -o -name "*.jpg" | xargs -I {} mv {} images/
find . -name "*.md" -o -name "*.txt" | xargs -I {} mv {} docs/
find . -name "*.py" -o -name "*.js" | xargs -I {} mv {} code/
find . -type f -name "*.ext" # Find by extension
find . -type f -mtime -7 # Modified in last 7 days
find . -type f -size +100M # Large files
Always preview batch operations:
echo "Would move these files:"
find . -name "*.ext"
# Review, then execute
trash if available)Load when:
共 1 个版本