variable read and set grep

$ cat n1
echo -n "Enter your surname and name: "
read surname name
echo "Hi $name, how is your $surname family"
set | grep name

$ bash n1
Enter your surname and name: Corbat Mike
Hi Mike, how is your Corbat family
name=Mike
surname=Corbat
$

Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all