I need a script that does the following to a file.
The contents of said file look like this originally:
If there are any other question please let me know.
Code:
read in contents of file at /Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties
if line containing "servicePort=4200" exists then remove it
else add line "servicePort=4200" to end of file
The contents of said file look like this originally:
Code:
#Fri Dec 09 09:50:22 CST 2005
#serviceHost=127.0.0.1
#servicePort=4243
#pollerPeriod=1000 # 1 second
#connectRetryDelay=10000 # 10 seconds
#connectRetryAttempts=3
#showWelcome=true
#font.small=
#font.default=
#font.title=
#font.message.header=
#font.message.body=
#font.tab=
If there are any other question please let me know.