Hello Ruda,
Due to the peculiarities of here documents in rc the following:
> s = `{sam -d <<EOF <{echo $i} >[2] /dev/null
> 1s/(.+)_g/\1
> p
> EOF
> }
should be written as:
s = `{sam -d <<EOF <{echo $i} >[2] /dev/null}
...
EOF
Hope that helps,
Martin
