Lower case a string in bash

How do I lower case a string in bash?

/bin/mv $file $(echo $file | tr '[A-Z]' '[a-z]'])

Where $file is the file name we want lower cased.

Bash endless loop

How can I execute something to run forever, like an endless loop in bash?

while [ 1 = 1 ]
do
   echo "Print this string forever: bash endless loop";
done

Wordpress remove » / » from page title

To remove » / » from wordpress script, edit header.php in your theme files and change:

wp_title()

to

wp_title("")

Wordpress: Remove “Blog Archive” from page title

To remove Blog Archive from blog post title, in administrative area of your blog use Theme Editor, edit header.php.

Replace this code:

bloginfo('name'); ?> < ?php if ( is_single() ) { ?> < ?php } ?> < ?php wp_title(); ?>

Read the rest of this entry »

Wordpress: Hide protected post on Recent Post widget

I am using the WP Hide Post and I didn’t like that the password protected posts are displayed on the front Recent Post section.

I added 2 small php code and now there are no protected posts on Recent Post.

The way is:

Read the rest of this entry »