(b) Write a shell script program to search whether element is present is in the list or not and also display its position in the list.
To create a shell script that searches for an element in a list and displays its position, you can follow these steps. Below, I'll provide a sample script implemented for both Windows (using PowerShell) and Linux (using Bash).
### Windows (PowerShell)
```powershell
# Define the list
$list = @(1, 3, 5, 7, ______ _____ ____ ______ __________ ______ ________ ___.
_________ ________ ___ _______ ____ ______ ________ ________ ______ __________.
_______ ___ _______ _____ _____ ______ _______ __________ ____ _____.
_________ ________ ___ _______ ______ _________ ________ ________ _________ ________ _________ ____.
_______ _______ ____ ____ ______ _______ ___.
_________ _________ _________ __________ _________ _______.
______ __________ _________ ________ ______ _________ _________ ________ __________ ______ _____.
_________ ___ ________ _______ ____ _________ _____ __________ ____ ___ _____.
_____ ____ ____ _________ ________ _________ ________ _______ _____ _________.
______ ____ _______ ___ ___.
______ ____ _______ __________ ___ ____ _____ _______ _________ __________ ________ _____.
________ ___ ____ __________ ________ ____.
_______ ________ _______ _________ ____ ___.
______ _____ _________ _____ _______ ____ ________ ________.
________ _____ ________ _________ __________.
_______ ______ ________ ____ ____ ____ ______ _____ ____ ____ ______ _____.
________ ________ ________ _______ ____ _____ __________.
_____ _____ ______ _________ ___.
_________ ________ __________ ______ ____ ______ ___ ________.
_________ _________ ____ ______ ________ ____ ______.
_________ _____ _______ _____ ___ ____.
_____ _____ ___ ___ ______ ________ __________ _____ _____ _______.
___ ________ _________ _______ ______ __________ _____ ________ _________ __________.
_________ __________ ______ ______ _______ ______ _________ ___ ____.
_____ ________ _________ _______ _________ ____ ________.
_____ _________ ___ ________ _____ ____ ________ ____ __________ ________ __________.
_________ __________ _________ _____ ____ ______ _________ ________ ______.
_______ _________ ________ ____ _______ _____ ______ __________ _________ ___ _____ ______.
___ _________ ___ ____ ___ ________.
____ ___ _____ _________ ___ _________.
______ ______ ________ ______ _________ __________ _____.
____ ________ ___ _________ ________ ____ _______ _____ ________ _____ ______.
Get Full Answer on WhatsApp