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.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.