HACKERANK SOLUTIONS, LINUX SCRIPTING
Write a Bash script that accepts as input and displays the greeting "Welcome (name)"
Input Format
There is one line of text,.
Output Format
One line: "Welcome (name)" (quotation marks excluded).
The evaluation will be case-sensitive.
Sample Input 0
Dan
Sample Output 0
Welcome Dan
Sample Input 1
Prashant
Sample Output 1
Welcome PrashantSolution
Here, the read commad is used to take input from the user .
CODE
read name
echo "Welcome" $name
No comments:
Post a Comment