Re: Extract lines from text file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Greetings,

On Wed, Aug 15, 2012 at 7:52 PM, Tony Molloy <tony.molloy@xxxxx> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux