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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple print to a file ... 1

Status
Not open for further replies.

dbeez

Technical User
Aug 15, 2005
71
KR
I just want to print something to a file ... I know this must seem really easy but I'm looking for something like a 'print' function.

Echo seems to only print to stdout, so that's no good and I don't have any luck on just
Code:
print "string" file

what should I do then ??
 
Why don't you just redirect stdout to a file:

Code:
echo "string" > file

# append to a file
echo "string" >> file


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top