regular expressions

Recently, we moved all our static assets to a CDN as described here. However, we have over 8000+ old blog posts and we need to point static images url to our CDN account hosted at http://MyACCOUNT.cloudfront.net/images/ folder. How do I rename all image urls stored in wordpress posts? How do I offload static images to a CDN urls under Wordpress?

{ 24 comments }

I‘ve tons of images, css and javascript hosted at backend server IP 192.168.1.5 and 192.168.1.6. How do I make sure nginx reverse proxy load balancer always send all http_user_agent requests coming from “Mozilla” to server 192.168.1.5 and MSIE to server 192.168.1.6 only?

{ 2 comments }

How do I determine whether a variable called spath=”/srv/www/cyberciti.biz/https” contains a substring called “cyberciti.biz”?

{ 5 comments }

How do I use the Grep command with regular expressions on a Linux and Unix-like operating systems?

{ 60 comments }

Q. How do I find the text between the strings FOO and BAR inclusive using sed command line option?

{ 36 comments }

Q. How do I use sed for selective deletion of certain lines? I have text as follows in file: Line 1 Line 2 WORD1 Line3 Line 4 WORD2 Line5 I would like to delete all lines between WORD1 and WORD2 to produce final output: Line 1 Line 2 Line5 A. For selective deletion of certain […]

{ 10 comments }