Need to output every second line in a text file

Hello all,
I need to run a short script of some sort that looks through a text file of a variable sze and take every second line and output this to a new file.
The one catch? is the original file cannot be left with a blank line where the line was extracted
I was looking at a cut -c or maybe an AWK command but can't figure how to gte it to skip a line each time?
the file will be like this:
The quick brown fox jumps over the lazy dog
The slow black dog jumps over the lazy fox
The quick brown fox jumps over the lazy dog
The slow black dog jumps over the lazy fox
The quick brown fox jumps over the lazy dog
The slow black dog jumps over the lazy fox
The quick brown fox jumps over the lazy dog
The slow black dog jumps over the lazy fox
The quick brown fox jumps over the lazy dog
The slow black dog jumps over the lazy fox
The quick brown fox jumps over the lazy dog

I want to have to two files with no blank lines.
One containing "The quick brown fox jumps over the lazy dog" and
the 2nd has "The slow black dog jumps over the lazy fox"
Thanks in advance
Craig
MrBungle50
mrbungle50Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ozoCommented:
#!/usr/bin/perl
open F1,">One" or die $!;
open F2,">2nd" or die $!;
while( <> ){
    print {$.%2?F1:F2} $_;
}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mrbungle50Author Commented:
Absolutely fabulous and the syntax makes sense.  I must be learning something from this as I go :-)
Thanks Ozo  you are a champion script writer. I wish you worked in my office.
Thanks again
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Shell Scripting

From novice to tech pro — start learning today.