Lower case a string in bash
Sep 5, 2009 Programming
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.
Tags: Bash
Bash endless loop
Sep 5, 2009 Programming
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 |
Tags: Bash
Wordpress remove » / » from page title
Aug 29, 2009 Programming, Scripts
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
Aug 29, 2009 Programming
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(); ?> |
Wordpress: Hide protected post on Recent Post widget
Aug 28, 2009 Programming
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:



