VIP 👤
🏠 الرئيسية
المقاييس
📊 جميع المقاييس 🦖 ديناصور v1 🦖 ديناصور v2 ✅ تطبيقات قائمة المهام 🎨 صفحات حرة إبداعية 🎯 FSACB - العرض النهائي 🌍 مقياس الترجمة
النماذج
🏆 أفضل 10 نماذج 🆓 نماذج مجانية 📋 جميع النماذج ⚙️ كيلو كود
الموارد
💬 مكتبة الأوامر 📖 قاموس الذكاء الاصطناعي 🔗 روابط مفيدة 🔌 واجهات API والموجّهات
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.