Loading…
OS · First scripts · Program 23 · In the record
shell script to print full name after input name and title separately
1#!/bin/bash2 3echo "Enter the title (Mr/Ms/Dr):"4read title5 6echo "Enter the name:"7read name8 9full_name="$title. $name"10 11echo "Full Name: $full_name"Mr ⏎ John SmithEnter the title (Mr/Ms/Dr): Mr Enter the name: John Smith Full Name: Mr. John Smith
Run program 23 in your browser
bash · just-bash. Change the code or the input, run it, break it, and see what happens.