Friday, April 27, 2007

Neato Unix Command (Friday, April 27, 2007)

fold - wrap each input line to fit in specified width

Great for when your text editor is being stupid.

2 comments:

  1. I'm not sure what text editor you're using, but if it's Vim, I presume you're already aware of gq, gqap etc? They wrap lines, wrap all lines in a paragraph, and so on.

    ReplyDelete
  2. It was gedit. I was printing a text file, and the output did not wrap on the printout. So I figured I'd see if there was a command to do the wrapping for me.

    Vim is perfect, of course, and could never be stupid.

    ReplyDelete

© 2012 James Bowes. Icons by glyphicons. Powered by Blogger.