Bash shell script to swap the given numbers and strings
kw.sh
#!/bin/bashecho"———————————————————————————————————————————"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
kodingwindow@kw:~$ bash kw.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!
———————————————————————————————————————————
kodingwindow@kw:~$
Dear User, Thank you for visitng KodingWindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.
Dear User, We are grateful for your interest in the KodingWindow Android app. We intend to soon make it available on the Google Play Store. Currently, you need to install apk manually. Would you like to get the app? Minimum Requirement(s): Android 10