use cat instead of read