Script to find line in one file and replace in another

view story

http://www.unix.com – Hey Guys, im looking for a script that will work under OSX. What i want to do is copy information from one file (Specific LIne) and write it to a certain line in another. To be more specific... I want the hostname of a mac to be gathered ( i assume its stored in a .plist file somewhere) and that hostname value to be written to another pslist file: The source could be a .plist file The pslist file that i want it WRITTEN to looks like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" " (HowTos)