Magento Remove Hard Coded URLs from Theme
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...
View ArticleSed Error Unknown option to ‘s’ + Solution
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...
View ArticleFormatting the output from tail
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...
View ArticleFormat searched log files
When you are monitoring a log file you may want to narrow it down, and format the results. This simple one line command will break up the output from a log file to make it easier to quickly read tail...
View ArticleTip: Remove spaces from filenames one-liner
There is often the case when you need to remove spaces from filenames – for instance when importing broken data feeds into Magento or osCommerce systems. The following strips spaces and replaces them...
View Article