#!/bin/bash perl -ne '$_=~s/^(\s+)//; $_=~s/(\s+)$//g; $_=~s/(\s+)/\t/g; print "$_\n"' "$@"