Skip to content

Instantly share code, notes, and snippets.

@cavedave
Last active August 29, 2015 14:27
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 cavedave/540ea3765079fcb70233 to your computer and use it in GitHub Desktop.
Save cavedave/540ea3765079fcb70233 to your computer and use it in GitHub Desktop.
#Twitter now allows 10k characters in a direct message
#Below is the linux commands to convert Moby dick into
#1432 10k long direct messages
#It strips the Gutenberg header and footer as reading those would be odd
wget http://www.gutenberg.org/cache/epub/2701/pg2701.txt
sed '21745,22109d' mb.txt > mb-ft.txt
sed '1,537d' mb-ft.txt > mb-tr.txt
mkdir moby10k
split -b 10000 mb-tr.txt moby10k/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment