If you need to monitor a log file in real time, then using a combination of tail and grep will allow you to watch the important parts of the file. However if the log file spans more than one line then it can quickly become difficult to read. By using sed you are able to [...]
Archive: sed
Posts Tagged ‘sed’
January 11, 2012
No Comments
March 2, 2011
1 Comment
If you are struggling to figure out why your Sed script is failing this could well be the solution. Every example you see using sed specifies / as a delimiter. Now what if your pattern actually includes a slash in the body text? If you are using a variable you might not realise that you [...]
September 2, 2010
No Comments
If you are working on a theme, you may find that there are hard coded links dotted all over the place. This can make testing a site offline (and thereby not on the same URL) a bit of a pain. Here is a quick fix for you: 1. Remove all hard coded links from the [...]
Categories:
Archive by date: