Bash shell script to swap the given numbers and strings
codeaft.sh
#!/bin/bash

echo "———————————————————————————————————————————"
echo "Script to swap the given numbers and strings"
echo "———————————————————————————————————————————"
echo -n "a="; read a
echo -n "b="; read b
echo "——————————————————————"
echo "After swapping..."
echo "——————————————————————"
sleep 2
echo "a=$b"
echo "b=$a"
echo "———————————————————————————————————————————"
Output
codeaft@codeaft:~$ bash codeaft.sh
———————————————————————————————————————————
Script to swap the given numbers and strings
———————————————————————————————————————————
a=Hi There!
b=How are you today?
——————————————————————
After swapping...
——————————————————————
a=How are you today?
b=Hi There!
———————————————————————————————————————————
codeaft@codeaft:~$ 
Comments and Reactions