File Splitting

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: sinck@ugive.com
Date:  
Subject: File Splitting

\_ LOL! Dude, that "head/tail" thing just HAS to
\_ go into SOME kind of "Hall of Fame."

Um, the "Hall of Shame"...notice the trailing filenames are all
foo.02? Sheesh. There's a reasons I don't copy and paste code
usually, and that's it. :-)

\_ > Ooo...that's more graceful than what I sed about using head + tail...
\_ >
\_ > head -100 infil > foo.01
\_ > head -200 infil | tail -100 > foo.02
\_ > head -300 infil | tail -100 > foo.02
\_ > head -400 infil | tail -100 > foo.02
\_ > ....

I like my perl sol'n better still, tho.

David