The Fugue

Counterpoint by Hans Fugal

Truncate at 72 characters with sed

Posted by Hans Fugal Tue, 22 Mar 2005 22:01:19 GMT

I like to make cron jobs to mail me interesting information, e.g. the output of clog. Often, I want to truncate at 72 characters rather than deal with the wrapping, so I use this cute little sed script: sed "s/^\(.\{72\}\).*$/\1/"

Posted in | no comments | Tags | atom

Comments

Leave a response

Leave a comment