From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu From: Gregory Pavelcak Date: Tue, 21 Nov 2006 13:58:10 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Subject: [9fans] awk script weirdness Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: e4cb3e96-ead1-11e9-9d60-3106f5b1d025 I've been trying to break a large .ms-like file into smaller files with awk with variations on the following script awk ' BEGIN {i=3D0} /^\.([lp]p|hd|xm\/)/ {print >> ++i; next} {print >> i} ' ../indis.ms Whatever I do, it will work fine creating the first 85 files then quit. The above script quits with awk: can't open file d=EF=BF=BD=04 input record ../indis.ms:830 source line 3 While awk ' BEGIN {i=3D0} /^\.([lp]p|hd|xm\/)/ {i=3Di+1; print >> i; next} {print >> i} ' ../indis.ms quits with: awk: can't open file D=04=06 input record ../indis.ms:830 source line 3 Any ideas? Greg