I need to create a script to modify some data, which would require super user permission. Is there any way to automate this process via shell script on Mac 10?
Sample Script:
sed s/Hello/World/g /usr/local/opt/test.xml
To run this script, the user needs super user permission, is there any way to provide root credentials in the script and execute?
