Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!nisca.ircc.ohio-state.edu!hpuxa.ircc.ohio-state.edu!frank From: frank@hpuxa.ircc.ohio-state.edu (Frank G. Fiamingo) Newsgroups: comp.unix.questions Subject: AWK Question Message-ID: <281@nisca.ircc.ohio-state.edu> Date: 4 Oct 89 21:06:46 GMT Sender: news@nisca.ircc.ohio-state.edu Organization: Ohio State Univ IRCC Lines: 18 My problem is that I want to check a particular character position in a record to see whether or not it is a blank. If so, I want to change it to a zero. I thought I could do this with an awk script similar to the one below, but have had no success. BEGIN {FS=""} {split($0,array); if (array[28] == " ") {array[28] = 0}; for(i in array) print array[$1]} However, it appears that split is only recognizing 2 fields in the record, rather than the 35 characters that it contains. Can anyone tell me where I've gone wrong, or a better way to do this? Thanks, Frank