Hey Folks,
First, any support and help on this is largely appreciated.
I'm trying to write a simple Bash script (completely new to this) to replace a file in a given directory.
Basically, I need to write a script to replace the safari preference file, here's what I have..and what's not working for that matter:
#!/bin/bash
find /Files/ -iname "com.apple.Safari.plist" - print0 | xargs -I{} -0 -1 cp file /Users/{}/Library/Preferences
It errors out with the following:
find: -: unknown option
xargs: illegal option -- 1
Any thoughts, ideas, are greatly appreciated.
Thanks,