Question

Write a shell program to illustrate the case statement. 

13 Sep 2024
Answer :
Word Count : 381

Here's a simple shell program that demonstrates the use of a `case` statement in both Windows (using PowerShell) and Linux (using Bash). This script will prompt the user to enter a number corresponding to a day of the week and then display the name of the day.

### Windows (PowerShell) Example

```powershell
# PowerShell script to illustrate the case statement

# Prompt ___ ____ ___ _______ _____ ________ _________.
_____ ___ ______ ___ _________ _____ ________ ________ _________ ______ ______.
_____ ________ _______ _________ ___ _____ __________ ________.
_____ ______ _______ ______ _______ ______ ___ ___ _____ _____ _____.
_______ ________ _______ ________ __________ ___ ________.
_____ ______ ___ ________ ______ ___.
_________ ______ _________ ____ ____ ___ ___ __________ ________.
________ ______ ________ ______ _______ _____ __________ ________ _______.
_____ ______ _____ ___ ___ __________.
_____ ______ _________ _______ _______ __________.
________ _______ _________ ________ __________ ___ __________ _______ ____ ____ ________.
________ _____ ___ _______ ________ _________ ____ ____ ______.
_________ ___ _________ _________ _____ ________ _________ _____.
____ _________ ___ _______ ___ ____ _______ ________ _______ _____ _______ ________.
___ ___ ________ ____ _________ _______.
________ ________ ___ _______ _____ __________ __________ ____ __________ _________ ___.
_______ ____ ___ _____ __________ _________.
________ _______ _____ ________ ______ ____.
_________ ______ ________ ______ _________ __________ _____ __________ ________ _________ _____.
____ _____ __________ ______ ________ ___ ________ ________ _______ ________.
_________ ____ ______ _______ ____ ____.
__________ _______ ___ ____ _______ ___ _______.
__________ _______ _________ _______ ____ ___ _______ ____ ____ ___.
__________ _____ __________ _______ __________ _______ _______ ________ ______ ________ __________.
____ ________ _________ ________ ________ ______.
_____ ______ ________ _____ _______ ________ ______.
__________ _____ ____ _______ ___ _____.
___ __________ _______ _______ _______ _________ _________ ________ ______.
___ ______ _______ __________ ______ ____ ____ ______ ________ _________ ____ ____.
_______ ______ _____ _________ _________ ________ ________ _______.
______ ____ __________ ___ _____ __________ _____ _________.
____ _________ ______ ______ ______ _____ _____ _________ ________ _______.
______ ___ __________ ______ ___ ______.
_____ ________ _________ ____ _________ ____ ________ ______ _________ _________.
_____ _______ ________ __________ ________ ________ ___ ____.
__________ ________ ______ ___ ____.
____ ________ ___ ___ ___ __________.
__________ ___ _________ ________ _____ _____ ____ _____ ____ __________ ____.
_______ __________.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Write a shell program to illustrate the case statement. 
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→