Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send text to output file

Status
Not open for further replies.

denisl

Technical User
Jun 18, 2001
36
US
I want to send a bunch of line to an output file - my script is creating a configuration file. I want to do something like this but not sure how..

Code:
outputfile.config<
text of file
lines of configs
yada yada yada
>>EOF
 
Why not simply something like this ?
echo "\
text of file
lines of configs
yada yada yada" > outputfile.config

For another way, in your shell man page have a look at here-document

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Okay - learn something new everyday... ugh!

Thanks!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top