[CentOS] Extract lines from text file

Rajagopal Swaminathan raju.rajsand at gmail.com
Wed Aug 15 14:31:06 UTC 2012


Greetings,

On Wed, Aug 15, 2012 at 7:52 PM, Tony Molloy <tony.molloy at ul.ie> wrote:
>
> Hi,
>
>
> So for instance if I need to extract lines where;
>
> the 1st field, the username begins with an m
> and
> the 4th field, the group contains exactly 850
>

cut -d: -f1,4 <input-filename>

-- 
Regards,

Rajagopal



More information about the CentOS mailing list