egrep sorts me out 

egrep -e ^2010\(07\|08\|09\|10\|11\|12\) -e ^2011\(01\|02\|03\|04\|05\|06\) txn.id.list > new.id.list


On Thu, Jun 13, 2013 at 2:26 PM, Thuo Wilson <lixton@gmail.com> wrote:
In linux this is the simplest exercise ever :)

grep or awk and tee will sort you out

Send a sample file to give u exact commands. You could even join files created by tee


Wilson./


On 13 June 2013 14:08, Tony Likhanga <tlikhanga@gmail.com> wrote:
2013/6/13 Simon Mburu <sgatonye@gmail.com>
A simple cat and grep, should do it.
Something in the lines of

cat file1 | egrep ^2008\(06\|07\|08\|09) > file2

 Without being picky.... isn't this some form of 'cat abuse'?
I think the cat command is superfluous; unless there's some not-so-obvious advantage it adds to that syntax.

_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke


_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke