I am running ksh :
ksh --version
version sh (AT&T Research) 93u+ 2012-08-01
I have a file (b1) containing the following:
AAA
BBB
CCCC
I have a second file (b2) containing the following
1234
5432
AAAA
987
I run an interactive shell that goes like this
cat a2 | while read a ; do
grep $a b2
done
My output looks like this
AAAA
grep: grep: cannot execute [Exec format error]
grep: grep: cannot execute [Exec format error]
This is not data related as i manually created the above file with an editor simulating what i do with real world data.
This works for some users. I am trying to narrow down what in the environment may be different.
Any suggestions?