File Splitting

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

\_
\_ What??? Everyone DOESN'T instinctively
\_ think to do
\_
\_ sed -n '1,99p' < infil >foo.01
\_ sed -n '100,199p' < infil >foo.02
\_ sed -n '200,299p' < infil >foo.03
\_ sed -n '300,399p' < infil >foo.04
\_ sed -n '400,499p' < infil >foo.05

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
....

David