Greetings i need to add the contents of a file to the end of each line of a string. It would be easy to do a simple sed 's/mytext/newtext/g' newtext in this case is an xml file. which needs to stay intact. my text looks like this one:two:three:four:five: output needs to look like this one:two:three:four: <?xml version="1.0" encoding="UTF-8"?>\ <dict>\ <key>AccountState</key>\ <string>Enabled</string>\ </dict>\ So I thought i could ; REPLACE=/path/to/myfile cat mytext | sed 's/five/$REPLACE/g' im getting stuck any assistance would be helpful. -j