Search This Blog

Saturday, November 7, 2009

Linux trick with grep tool

Command line tools are like grep are very useful when working a lot with text files.

One unknown feature is the --color options which shows you in different colour the matching string grep found.

user@host:~$ egrep '(vmx|svm)' --color=always /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm ida tpr_shadow vnmi flexpriority

No comments:

Post a Comment