File Splitting

sinck@ugive.com sinck@ugive.com
Wed, 6 Dec 2000 07:51:03 -0700


\_ 
\_ 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