I am using bourne shell.
I did go on the FAQ site but I dont see an example in which we are trying to capture output generated by a script command
s into a variable. Notice the bold S!

. What I mean is, I need to capture output fromt the ftp command dir $FILE as this will tell me if the file exists on the ftp server.