Need Help with Linux!!
5.2) Based on HW 5, please write a shell script with a for-loop, which displays all executable files but not directories under /etc directory. Your script should not display any directories. Please test your script on our server and provide your script below along with a screenshot of the execution of your script.
a) Please provide your script below: (hint: the solution to HW 5, hands-on problem 2, can be used as a template)
b) Please provide the screenshot below
5.3) Based on the solution to HW 6, hands-on problem 2, please modify your bash/sed script mysedscript so that it will 1) remove the blank line(s), 2) replace Nancys record with Alices record (Alice 95 98 77), and 3) update Lisas the second score 77 to 88. Please test your sed script using ./mysedscript mysedfile and make sure file mysedfile is updated accordingly:
a) Please provide your script below: (hint: the solution to HW 6, hands-on problem 2, can be used as a template)
b) Please provide the screenshot below:
Solution hw 6
Solution hw 6
" Script Hands-on Problem 2 #1 /bin/bash if[$# 0 then ] echo "PLease do it again with a file name." exit: else echo "File Name: $1 if -f "$1"1 then echo $1 "is a regular file." if -x"$1" 1 then echo $1 "is executable." fi ir "$1" then echo $1 "is readable." fi else echo "Fie fi "is not a regular file." echo "See you next time!" echo