Skip to content

Instantly share code, notes, and snippets.

@anoved
Created March 3, 2013 16:17
Show Gist options
  • Save anoved/5076718 to your computer and use it in GitHub Desktop.
Save anoved/5076718 to your computer and use it in GitHub Desktop.
Hard wrap text filter for BBEdit. Works better for generic data than the built-in "Hard Wrap" command, which attempts to interpret the text to wrap as a prose text, and therefore inserts line breaks at various places including punctuation characters and spaces.
#!/bin/sh
fold -w 80 < /dev/stdin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment