Introduction
In the ancient mythological realms of India, a digitally enchanted world mirrors the complexities of our beloved land. The world, known as "Sankya Lokam," is facing a dire predicament. A sacred creature known as "Vidyutpada" – an electrical beast with the power to control the flow of information, has been trapped in the form of a Linux system by a cunning asura (demon). In order to unleash the Vidyutpada and restore its powers, a chosen one must navigate through the mystical commands and unlock the secrets of Linux Input Reading.
Your mission is to achieve mastery over the art of reading inputs in Linux, utilizing the divine 'read' command to decipher the coded messages left by the ancients. Are you ready to embark on this epic quest and unlock the pathways to enlightenment?
Decoding the Scrolls of Input
In this step, you shall begin your journey by learning to harness the 'read' command to capture the ethereal essence of user-supplied inputs.
Tasks
- Complete the
greet_user.shscript that prompts the user for their name. - Ensure that the script reads the input and echoes a personalized greeting.
Requirements
- Complete the
greet_user.shscript template (which was created during setup) using thereadcommand to obtain user input. - The script file is already located at
~/project/greet_user.shand has execute permissions. - Use
echocommand to print the personalized greeting. - Follow the exact output format shown in the example below.
Example
What is your name? Arjun
Welcome, Arjun, to the Sankya Lokam!
Channeling the Echoes of the Past
In this step, your skills will be further tested by requiring you to handle multiple inputs and display a message that weaves them into a single string of ancient wisdom.
Tasks
- Complete the
greet_user2.shscript to accept two inputs: the user's name and title. - Construct a message that incorporates both the name and title of the user.
Requirements
- Complete the
greet_user2.shscript (which was created during setup) to include tworeadcommands: one for the name and one for the title. - Your script should combine the name and title into a single greeting message.
- Use appropriate prompts to guide the user input.
Example
What is your name? Arjun
What is your title? The Brave
Welcome, Arjun The Brave, to the Sankya Lokam!
Summary
In this challenge, we designed a learning journey set in the mystical world of Sankya Lokam, teaching the essentials of Linux Input Reading through engaging mythical characters and scenarios. The goal was to create a setting that spurs curiosity and drive learners to accomplish quests using the read command. Your quest to free Vidyutpada stands completed, and the knowledge of Linux input reading shall forever be at your command. Through this challenge, may your travels in the digital realms be ever fruitful.



