gawk


BEGIN {
    for(i = 1; i < ARGC; i++) {
        for(n = 1; (getline x < ARGV[i]) > 0; n++) {
            print n, x
        }
    }
}