#!/bin/sh
sed "1,8d" part.lst > part.lst1
nkf --unix part.lst1 > part.lst11
expand -t1 part.lst11 > part.lst2
count1=0
count2=1
count3=0
rm ./DATA/*.txt
while [ $count1 -le 46 ];
do
count1=`expr $count1 + 1`
count2=`expr $count2 + 1`
count3=`expr $count3 + 1`
sed -n "/^$count1 /,/^$count2/p" part.lst2 | sed "/^$count2/d" > ./DATA/$count3.txt
done
Comments