How to egrep the first character in second column?

Posted by Steve on Super User See other posts from Super User or by Steve
Published on 2012-09-28T15:32:18Z Indexed on 2012/09/28 15:41 UTC
Read the original article Hit count: 347

using egrep, how can i print all lastnames start with K or k ???

Jennifer Cowan:548-834-2348:583 Laurel Ave., Kingsville, TX 83745:10/1/35:58900
Lesley Kirstin:408-456-1234:4 Harvard Square, Boston, MA 02133:4/22/62:52600
Jennifer Cowan:548-834-2348:583 Laurel Ave., kingsville, TX 83745:10/1/35:58900
Lesley kirstin:408-456-1234:4 Harvard Square, Boston, MA 02133:4/22/62:52600
William Kopf:846-836-2837:6937 Ware Road, Milton, PA 93756:9/21/46:43500
Arthur Putie:923-835-8745:23 Wimp Lane, Kensington, DL 38758:8/31/69:126000

© Super User or respective owner

Related posts about command-line

Related posts about bash-scripting