1. Dynamic String Manipulation and FormattingWrite a Bash script that accepts a full name from the user (in the format "First Middle Last") and then formats it into "Last, First Middle…
2. Multi-level String Length ValidationWrite a Bash script that reads a string from the user and classifies it into three categories: "Short string" if less than 5 characters, "Medium …
3. Advanced Substring ManipulationWrite a Bash script that extracts the username and domain name from an email address, then creates a new email address by reversing the domain and username (e.g., `u…
4. Recursive String ReplacementWrite a Bash script that performs recursive replacement of the word "foo" with "bar" in a given string until no more "foo" can be found. P…
5. Case-Insensitive Substring ReplacementWrite a Bash script that reads a string and replaces all occurrences of the word "hello" (case insensitive) with "hi". Ensure the replacem…
6. Splitting Strings and Counting ElementsWrite a Bash script that splits a colon-separated string into an array and prints each element on a new line. Additionally, count the number of elements and …
7. Extracting Components from a URLWrite a Bash script that extracts the protocol, domain, and path from a given URL. Print each component separately.→ Expected Output Example:Enter a URL: https://ex…
8. Advanced String Padding and AlignmentWrite a Bash script that reads a string and right-pads it with dots (.) to ensure it is at least 20 characters long. If the string is already 20 characters or …
9. String Reversal with Special Character HandlingWrite a Bash script that reads a string and reverses it, ensuring that any special characters (non-alphanumeric) remain in their original positions.→…
10. Character Frequency AnalysisWrite a Bash script that reads a string and outputs the frequency of each character in the string. Print the characters and their frequencies in descending order of fr…