#!/bin/sh COLUMNS=${COLUMNS:-80} ; export COLUMNS cat $@ | expand | awk -F\ '{ print substr($0,1,ENVIRON["COLUMNS"]-1) }'