I'm having a strange little problem that MUST have an answer but I can't
seem to figure it out! I'm using a Bourne shell on SCO Openserver 5.0.5 and
have the following problem:
I'm trying to set the IFS (Internal Field Seperator) variable to a newline
character so I can properly loop thru each line of a command output. Here's
a snip of my code:
for nxt in `ps`
dex=`expr $dex + 1`
e=`echo $nxt|cut -f1 -d' '`
echo "$dex) $nxt"
The problem is that the shell is seperating my lines at ...