Question: UNIX script problem, please provide screenshot of working program with output 1. Consider the following addeutry script listed below S cat addentry # addentry: add
1. Consider the following addeutry script listed below S cat addentry # addentry: add a journal entry to the file # SHOME/entry-file file-SHOME/entry-file date >> Sfile echo -n "Enter name of person or group: " read name echo "Sname" >>Sfile echo >> Sfile cat > Sfile echo ". Sfile echo >> Sfile Rewrite this script (and name it addentry1) by adding commands to verify that the user has write permission for a file named entry-file in the user's home directory, if such a file exists. The script should take appropriate actions if entry-file exists and the user does not have write permission to the file. Verify that the modified seript works
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
