Do you really want to copy the modified line to the end of the original file so that the same tag exists twice with differing values?
Also, you can avoid having to escape the "/" by using a different separator
sed -n 's;<idle>600</idle>;<idle>900</idle>;p'
Also, unless you are using variabls in the sed statement then you are better off using single quotes instead of double quotes.
Last edited by masijade; Jul 6th, 2009 at 12:36 pm.
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
Offline 4,043 posts
since Feb 2006