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

Using file redirectors in bash 1

Status
Not open for further replies.

johngiggs

Technical User
Oct 30, 2002
492
US
In ksh I can do the following:


exec 3> /tmp/tstfile
print -u3 'TEST'
exec 3<&-

which will open /tmp/tstfile and print the string TEST.
What is the equivalent (if any) in bash?

Thanks,

John
 
Thanks, ericbrunson!! That worked. Have a star!!

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top