How to Search for Text in Files on Ubuntu

search text files ubuntuLooking for a way to search for text in files on Ubuntu? You should get a grip on the Ubuntu grep command.

Ubuntu grep command searches input FILE or FILES for lines containing a match to the given PATTERN. By default, grep prints the matching lines.

For your information grep stands for Global Regular Expression Print.

So do I need to know regular expression to use grep?

For simple searching you don’t need to be a regular expression guru. Remember the simplest regular expression (regex) is simply a word, or more generally, a string of characters.
[Read more…]

How to disable WordPress 2 Visual Editor

A lot of people I’ve spoke to, and many blog posts I have read have been really unhappy with the new visual editor in WordPress 2.0. It is pretty simple to revert back to the traditional post interface without all the WYSIWYG additions, but a lot of people aren’t sure how, or where to find the option. Click the “Users” menu in the WP admin area to access your profile. Once you are on the “Users” page scroll to the bottom of the page, and uncheck the “Use the visual editor” option. Once you have done this click the save button and you are back to the old, comfortable, pre-2.0 interface that we all love.

Original Article : Here

How to Remove WordPress Top 10 Plugin’s Dashboard Pagination

For Those Who are still not familiar with Top 10 Plugin of WordPress

WordPress doesn’t count page views by default. Top 10 Plugin will count the number of page views on your single posts on a daily as well as overall basis. You can then display the page view count on individual posts and pages as well as display a list of most popular posts based on page views.

Includes a sidebar widget to display the popular posts. And, all settings can be configured from within your WordPress Admin area itself! You can choose to disable tracking of author visits on their own posts.

The Plugin also comes with a Admin Dashboard widget which displays the daily and overall stats in WordPress Dashboard. The admin widgets shows a pagination bellow. If you have lot of posts the pagination counts display gets long and nasty. [Read more…]

Archive Page Template Customization the_excerpt Tag

Recently I am redesigning a general WordPress Archive Template. The Template file for archive category or tag pages is archive.php if tag.php is not present.

changed the

<?php the_content( $more_link_text, $strip_teaser, $more_file ); ?>

to this code

<?php the_excerpt(); ?>

The display has become much more cleaner than before. Only The title and a excerpt of the main content is being displayed.