#!/bin/bash

TITLE="Here Doc"

gnuplot << __EOC__
set term dumb
set grid
set title "$TITLE"
plot [x=0:pi*2] sin(x) 
__EOC__