Splitting a file from specific column content
Yigit Turgut
y.turgut at gmail.com
Sun Jan 22 15:16:19 EST 2012
On Jan 22, 9:37 pm, Roy Smith <r... at panix.com> wrote:
> On Jan 22, 2012, at 2:34 PM, Tim Chase wrote:
>
> > On 01/22/12 13:26, Roy Smith wrote:
> >>> If you wanted to do it in one pass using standard unix
> >>> tools, you can use:
>
> >>> sed -n -e'/^[0-2]/w first-three.txt' -e'/^[34]/w
> >>> next-two.txt' -e'/^[5-7]/w next-three.txt'
>
> >> I stand humbled.
>
> > In all likelyhood, you stand *younger*, not so much humbled ;-)
>
> Oh, yeah? That must explain my grey hair and bifocals. I go back to Unix v6 in 1977. Humbled it is.
Those times were much better IMHO (:
More information about the Python-list
mailing list