Archive for November, 2011

WordPress have your menus dropped to the bottom?

November 5th, 2011 No comments

This has happened to me several times and I’ve always blamed a WordPress update or Theme update so I’ve de-installed and re-installed etc etc, but in the end it has always been the same simple mistake namely An Unclosed DIV Tag in a Post! This usually or always causes chaos to your page structure. So next time this happens to you whether on your¬†WordPress¬†Blog or in the CSS of your Website always think to check for unmatched DIV Pairs <DIV>…</DIV>

Categories: css, wordpress Tags:

bash: Find specifying certain file extensions

November 2nd, 2011 No comments
I had terrible trouble finding a way to do this in bash, doesn’t seem to be possible using -name or -iname :-

find /var/www/html/ -regex “.*\(php\|js\|inc\)” -exec grep -i ‘tbl_title’ {} +

find /var/www/html/ -regex “.*\(php\|js\|inc\)” -exec grep -i ‘tbl_title’ {} \;

NB: the \; and + endings are different the + ending usefully displays the matching file name

Of course if you have a recent bash you will likely prefer:-

grep -ilR –include=*.{php,inc,js} ‘fn_main’ c:/inetpub/wwwroot


grep -iR –include=*.{php,inc,js} ‘fn_main’ c:/inetpub/wwwroot

Categories: shell tips Tags: