Command grep -
Patrick O'Callaghan
pocallaghan at gmail.com
Fri Apr 12 23:38:58 UTC 2013
On Fri, 2013-04-12 at 15:24 -0400, Bob Goodwin - Zuni, Virginia, USA
wrote:
> It's not clear to me what that should do but it produces a long list,
> not in the form I need? I just want to filter [view] DST=17.*.
>
> less syslog.txt | grep "DST=17\." does that and solves my immediate
> need.
As Suvayu already pointed out, using 'less' here is a waste of time.
Just run grep directly on the file, or if you want to use a pipe then
get the input from 'cat'.
poc
More information about the users
mailing list