Sebastian Busch <[EMAIL PROTECTED]> writes:
>The task is:
>
>"Remove the first two lines that don't begin with "@" from a file."
>
>How would you do it with sed?

Why a sed solution in a python group?

sed '/^@/!{G;/\n\n\n/{P;d;};s/[^\n]*//;h;d;}' data
-- 
John Savage                   (my news address is not valid for email)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to