[GLLUG] grep help
Mike Szumlinski
szumlins at mac.com
Wed May 11 15:10:28 EDT 2005
Actually, almost there. I also want the first line as well as the last
3 of each file.
On May 11, 2005, at 3:06 PM, STeve Andre' wrote:
> If I am understanding you, then all you want is the last three lines
> of output? If that is the case, you can use the tail command, like so
>
> grep blah blah blah | tail -3
>
> The cool cool thing about the shell is that you have all these little
> programs, like grep, head, tail, awk, sed, cut, etc that are tools
> that do on thing, which can be tacked together for a custom tool.
More information about the linux-user
mailing list