From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Date: Thu, 13 Jul 2000 12:48:04 +0000 From: Ed Brown Message-ID: <396DB521.8ED9B782@home.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <396B1FCD.FEAF377@home.com> Subject: Re: [9fans] awk oddity? Topicbox-Message-UUID: dab63004-eac8-11e9-9e20-41e7f4b1d025 > > The following commands: > awk '{print substr($0,1,8)}' bigfile >crud > and > awk '{print length($0,1,8)}' bigfile >crud > > Seem to lock up awk on Plan9. ... User error. bigfile was from another OS. I made an assumption that it was *7-bit* ascii, and thus UTF. A suggestion to other newbies like myself, run tcs on your "text" files first.