Command Of the Day

#1

Hi Friends,

Today I have learned the command to search a word in a file along with line number

Command:

egrep -in “nava|neethan” *.txt

Explanation:

egrep extended grep -in insensitive case and number “nava|neethan” word to be searched (nava or neethan) *.txt look up files

sample output:    egrep -in “nava|neethan” name.txt

1:nava is my first name

2:neethan is my last name

3:navaneethan = Navaneethan

Thanks for visiting today’s command of the day!!

Advertisements

About Navaneethan

mixed feelings...
This entry was posted in CoD, Free Software and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s