Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The following script will prompt the user to inter his school name. however, i w

ID: 3631917 • Letter: T

Question

The following script will prompt the user to inter his school name. however, i want you to help me write a script that help to save the school name in the file itself after it was intered by user.

echo " Enter the student school "
read name

# what should i write in the script that will help me to save the school'name that user input in the file itself?

Explanation / Answer

#!/bin/bash echo " enter school name" read name echo $name > school_details Run this script and then check "cat school_details" Use this script so the school name you entered is save in the file school_details (it contains only one school name at a time. #!/bin/bash echo " enter school name" read name echo $name >> school_details Run this script and then check "cat school_details" By using this script it works same as the above script but it save all the school names in the file school_details from starting on wards.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote