When downloading this file via curl I'm finding some blank lines at the end of it.

https: //shareasale.com/x.cfm?action=couponDeals&affiliateId=xx&token=yy&current=1

The blank lines are causing an import script to throw fits at me. Does anyone have a suggestion for easily removing this either during transfer or after download is complete?