Shell script for plotting graph