arg list too long

Hi,

Help. I have a file that contains a list of users in a file. I want to cat the content of the file and feed it into sed to a preformated report. The error I got is "ksh: /usr/bin/sed: arg list too long" My method below.

A=`cat FILE1.txt`
B=`echo $A`
sed "s#USERLIST#$B#" FILE2 > FILE3.html

Thanks for your help in advance.

type

getconf ARG_MAX

whats the o/p are you getting??

Can you please give us a sample input and output format ?