On 12/04/2014 10:41 AM, John Kendall wrote:
echo "$FILE ===========================\c"| cut -c1-30
Since you're going to have to rewrite it anyway if you want it to be portable, I suggest doing it this way:
printf '%.30s' "$FILE ===========================" as it's a lot more efficient anyway.