There will a time when we need to run a long or complex command in bash. I found myself in this situation when I play around with elasticsearch today. I need to run many curl command with long body like the below. curl -XGET localhost:9200/megacorp/employee/_search?pretty