Skip to content

Instantly share code, notes, and snippets.

@jakelodwick
Created June 22, 2014 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakelodwick/203a99d3c50f0efc3f59 to your computer and use it in GitHub Desktop.
Save jakelodwick/203a99d3c50f0efc3f59 to your computer and use it in GitHub Desktop.
line-broken file extension
`curl -O 'http://jakelodwick.imgix.net/bball.jpg\n'`
@jakelodwick
Copy link
Author

wtf?

If you run this script, it saves a file with the extension jpg\n, which shows up in OS X with the line break intact. If you then rename the file, you get a buggy dialog box:

installation

Save the file to your computer. Open a terminal, cd to the directory the file was downloaded to, and type ruby download.rb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment