How to copy file content using command line on Mac?