|
Shamrock, Thank you that worked perfect!!!! Sham-rocks!!
Thank you all, for your help.
for some reason I could not get it to work with what unilover suggested. not sure why but here is the command that worked with Shamrock.
for word in $(<file)
do response=command {$word is located within command}
echo
echo "$response"
echo "$response" >> ./return-data
file=return-data
done
cat "$file" | lpr
echo "All data has been sent to the following file."
echo "file"
echo "Script complete."
Thanks a million all. And I am sorry for posting in two forums. I did not get a sponse, so I thought it was ok, to post in an advance forum. Again, sorry, I am a newb to this forum.
|