We are running on a Sun cluster using ksh.
We have a script that has been running for about six months with no issues. The script has not been modified and our results are now coming out diffrent.
<BEGIN>
cat $exfile | while read line
do
revnpa=\`echo $line |cut -c 1-10 | sed '/\\n/!G;s/\\\(.\\\)\\\(.
*\n\)/&\2\1/;//D;s/.//'`
wtn=`echo $line |cut -c 1-10`
name=`echo $line | cut -c 11-25`
orig=999
wkfile=$workdir/OUT
insert=I
echo $revnpa$insert$wtn$name$orig >> OUT
<END>
The $exfile is a file that 26 bytes including /n
The name variable for whatever reason is deleting trailing white spaces rather than grabbing the full 15 bytes. We have verified using od that the spaces due in fact exist in the input file but are dropped during the variable assignment. Command line works fine but not in script. Shell is defined on first line
Thanks for any assistance