Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!sintef.no!finn.drablos From: finn.drablos@sintef.no (Finn Drablos) Newsgroups: comp.sys.sgi Subject: Problem with csplit ..... Message-ID: <218*finn.drablos@sintef.no> Date: 1 Oct 90 13:37:22 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 25 I have a source code file with several subroutines. Each subroutine is started with a comment line with 'BEGIN '. Now I want to split this into separate files with csplit, and as I understand the man page the following command should work : csplit -k source.src /BEGIN/ {40} However, it seems to split up to the first BEGIN, and then the next 40 lines. It does not use the pattern 40 times. I have tried /BEGIN/{40}, '/BEGIN/ {40}', '/BEGIN/{40}', '/BEGIN/+0 {40}', '/BEGIN/+0{40}', '/BEGIN/'{40} etc. ... Am I doing something obviously wrong, or is there a problem with csplit? I am using csh and IRIX 3.2.1. Thanks in advance! ================== Finn Drablos PHONE +47 7 997710 FAX +47 7 997708 MR-Senteret, UNIMED, SINTEF C=no;P=uninett;O=sintef;G=finn;S=drablos; N-7034 TRONDHEIM, NORWAY MHS(EAN) : finn.drablos@sintef.no EARN/BITNET : drabloes@norunit ----------------------------------------------------------------------