The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX Desktop for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 03-26-2008
Italy87 Italy87 is offline
Registered User
 

Join Date: Mar 2008
Location: EHT, NJ
Posts: 7
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.
Reply With Quote