🏠 Beranda
Benchmark
📊 Semua Benchmark 🦖 Dinosaurus v1 🦖 Dinosaurus v2 ✅ Aplikasi To-Do List 🎨 Halaman Bebas Kreatif 🎯 FSACB - Showcase Utama 🌍 Benchmark Terjemahan
Model
🏆 Top 10 Model 🆓 Model Gratis 📋 Semua Model ⚙️ Kilo Code
Sumber Daya
💬 Perpustakaan Prompt 📖 Glosarium AI 🔗 Tautan Berguna
hard

File Organization Script

#bash #scripting #automation

Write a Bash script to sort files by extension.

Write a Bash script that scans a specific directory for files and organizes them into subfolders based on their file extensions (e.g., .jpg files go into a 'Images' folder, .txt files go into 'Documents'). Ensure the script creates the directories if they do not exist.