Revision 9bd2dde42f59d60dfec149a28f8c91b6fb2cf717 authored by Dr. Stephen Henson on 25 November 2011, 16:27:19 UTC, committed by Dr. Stephen Henson on 25 November 2011, 16:27:19 UTC
1 parent 31bf5f1
tab_num.pl
#!/usr/local/bin/perl
$num=1;
$width=40;
while (<>)
{
chop;
$i=length($_);
$n=$width-$i;
$i=int(($n+7)/8);
print $_.("\t" x $i).$num."\n";
$num++;
}

Computing file changes ...