This script uses the echo command to prompt the user for their name, age, and favorite hobby using read to capture the user's input. Finally, it displays the entered information back to the user.
Save this script in a file (e.g., user_input_display.sh), make it executable (chmod +x user_input_display.sh), and then execute it (./user_input_display.sh) in your terminal to interact with it.@bashscripting6
@bashscripting6
9 окт 2024