Consider a gaussian cylinder of radius r and length L. The charge enclosed by the cylinder is given by
and the flux through the tube wall is given by
There is no flux contribution from the endcaps. By Gauss's law, the electric field is then proportional to the distance from the center and to the charge density:
Outside the cylinder a "line of charge" result is obtained.