Tr--translate is throwing an error

view full story

http://www.unix.com – Dear all, I would like to count the no;of word "INFORMATION" in a file called alt.lst and output to a unix variable INFORMATION.so to do this I wrote the below code Code: INFORMATION=echo 'INFORMATION' | tr -cs 'A-Za-z' '\n' < /app/tisq005/01/home/tisq005b/scripts/alt.lst | grep -c "INFORMATION" echo $INFORMATION I am getting the Information : not found error FYI..I am able to get the output in the information variable aswell as getting the above error can some one help to avoid the error Thanks in advance (HowTos)