Linux sed FAQ: How do I run a Linux sed command from the command line?
I usually only use the Linux sed command in sed scripts, but today I needed to do something much easier than normal, and as I thought about how to run a sed command from the Linux command line, I had to pause for a few moments. Finally I remembered the sed command line syntax, and it looks like this:
sed 's/THE_DATE/2010-07-11/' < sitemap-orig.xml > sitemap.xml
This sed command can be read like this: