perl -pe 'print "$. "' file1 file2 1 2 1 3 2 4 3 5 1 6 2 7 3 [ [download]
In reply to Re: Re: Yet another one-liner by fundflow in thread Yet another one-liner by wardk