gharris999 wrote:
> Is there a way to make 'patch' "forgiving" about the "change from"
> lines?  Or can anyone suggest an alternative approach (short of any
> actual perl script) here?  Perhaps I ought to be using some combination
> of echo, cat, grep magic to produce the appropriate patch file on the

Too complex!

This will do what you want:

perl -pi -e 's!^audiodir: .*$!audiodir: /path/to/new/audio/dir!'
server.prefs
perl -pi -e 's!^playlistdir: .*$!playlist: /path/to/new/playlist/dir!'
server.prefs
perl -pi -e 's!database=.*$!database=newdbname!' server.prefs

(There are three commands listed above, each on a separate line)

Remember to stop slimserver first.

R.

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to