Using Egrep to Return Multiple Lines From a List

Introduction

When you get verbose output from a system but you want to only see a number of specific lines:

Required Command

The following is an example from an Isilon node:
isi nfs exports list --verbose | egrep "ID|UID|Paths" > /ifs/data/blah/blahblah.txt
As you can see here done on an Isilon node to give me the info I wanted to see. And also output to a file cause there a so damn many. Sigh.

Leave a comment

Your email address will not be published. Comments are moderated before appearing.