In this post, you will learn how to solve A Personalized Echo HackerRank Solution. This problem (A Personalized Echo) is a part of Linux Shell series.
So, without further ado, let’s begin this tutorial.
Write a Bash script which accepts name as input and displays the greeting “Welcome (name)”
There is one line of text, name.
One line: “Welcome (name)” (quotation marks excluded).
The evaluation will be case-sensitive.
Sample Input 0
Sample Output 0
Sample Input 1
Sample Output 1
Solution – A Personalized Echo – HackerRank Solution
#!/bin/bash read name echo "Welcome $name"
Note: This problem (A Personalized Echo) is generated by HackerRank but the solution is provided by CodingBroz. This tutorial is only for Learning and Educational purpose.