dell data dell data - 1 year ago 84
Linux Question

Is it possible to search word in terminal?

I had doubt is it possible to search the matching of words(i.e in the below image i want to search word month)using terminal.How can i search it using LINUX command.
enter image description here

Answer Source

Use grep command to extract the words you want as follows :

grep --color -i -E "{regex|word}" {filename}

Otherwise open the vim editor and press : then type hlsearch to set the searching words to be highlighted if they are matching. Now open the file with vim editor and start searching.

for detailed steps, follow this vim wiki

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download