Menu-Driven Shell Script – File Management Example
1️⃣ Create File2️⃣ Delete File3️⃣ View File Content4️⃣ Rename File5️⃣ Exit Script: file_menu.sh ✅ How to Run 🎯 Sample Output 🔥 Important Exam Points
My Blog
1️⃣ Create File2️⃣ Delete File3️⃣ View File Content4️⃣ Rename File5️⃣ Exit Script: file_menu.sh ✅ How to Run 🎯 Sample Output 🔥 Important Exam Points
👉 Create Folder | Delete Folder | Exit This is a simple exam-oriented menu-driven shell script using case statement. 🖥️ Script: folder_menu.sh ✅ How to Run 🎯 Sample Output
!/bin/bash echo “Enter numbers separated by space:”read -a arr n=${#arr} while truedoecho “————————“echo “1. Sort Ascending”echo “2. Sort Descending”echo “3. Exit”echo “Enter your choice:”read choice done Sample Output Enter numbers…
🐧 Ubuntu Linux Ubuntu is a popular open-source Linux operating system based on Debian.It is user-friendly and widely used in education, servers, and desktops. 🔹 Installation of Ubuntu Linux Step…
🔓 Open Source Software What is Open Source? Open Source Software is software whose source code is freely available to: It focuses on freedom + transparency. Key features Examples (write…
🐧 GNU What is GNU? GNU stands for GNU’s Not Unix (recursive acronym 😄) It is a free software project started in 1983 to create a Unix-like operating system that…
🔧 What is a function? A function is a block of code that: 🔹 Function syntax OR ✅ Example 1: Simple function (EXAM BASIC ⭐) ✅ Example 2: Function with…
📦 What is an array? An array is a variable that can store multiple values under one name. ⚠️ Arrays are supported in Bash, not in very old sh. 🔹…
🔀 What is switch case? In shell scripting, switch case is written as case.It is used to match a value against multiple patterns. 🔹 Syntax Example 3: Check character type…
What is test command? The test command is used to check conditions and return true or false.It’s mainly used in shell scripts and if statements. 👉 It does not print…