You're viewing a comment by AskApache and its responses.
You're viewing a comment by AskApache and its responses.
I am being sponsored by Syntress! They bought me an amazing dedicated server to run catonmat on. If you're looking web services, I highly recommend the Syntress guys!
I love to read science books. They make my day and I get ideas for awesome blog posts, such as Busy Beaver, On Functors, Recursive Regular Expressions and many others.
Take a look at my
Amazon wish list, if you're curious about what I have planned reading next, and want to surprise me. :)
If you are interested in advertising on catonmat.net, contact me.
Free tools for coding on Vietstarsoft.com.
Programming homework help.


I'm having to open like 8 pages on your site to get your sed tips.. It'd be much easier for people if you created a master sed jump off point.
I feel the same way about sed as you, modifying streams mid-stream is just freaking awesome.
Check this out:
G will reset and clear the screen, A will cause a bell, but only if they are output to the tty.
Using sed I can tail a log file like a php_error.log file and when sed sees a special keyword appear in the output from tail it replaces it with G or A.
tail -f php_error.log | sed -u -e "s/AATPUTCLS/${G}/g"And in my php file I might add
error_log('AATPUTCLS');which would send that to the php_error.log and if it is being output via tail then sed resets the screen making it easy to focus in on code segments.
I hope you have some cool stuff on sed.. it's one tough cookie to figure out, but soo worth it. I use it alot in my various functions for my bash_profile.
Reply To This Comment