James Bowes

Purveyor of Pre-eminent Programmes

Neato Unix Command (Friday, April 27, 2007)

with 2 comments

fold – wrap each input line to fit in specified width

Great for when your text editor is being stupid.

Advertisements

Written by jbowes

April 27, 2007 at 8:25 am

2 Responses

Subscribe to comments with RSS.

  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.

    Ian

    April 28, 2007 at 11:04 am

  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.

    James Bowes

    April 29, 2007 at 9:19 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: