#include <stdio.h>
#include <stdlib.h>


int main(int argc, char** argv) {
    if (!(argc == 2 || argc == 3)) {
        fprintf(stderr, "USAGE: count_large size [permissions]\n");
        return 1;
    }

    int size = strtol(argv[1], NULL, 10);
    int total = 0;
    int cur;
    char permissions[11];
    scanf("%*s %*d");
    while (scanf("%s %*d %*s %*s %d %*s", permissions, &cur) != EOF) {
        printf("%s %d\n", permissions, cur);
    }

    return 0;
}

I am piping the following output into this code:
-rwx------  1 reid  staff    1734 Jun 22 14:52 prog
-rw-------  1 reid  staff   21510 Apr  6 12:10 tmp.txt
-rwxr-xr-x  1 reid  staff    8968 Feb  1 2013 xyz

it should output:
-rwx------1734
-rw------- 21510
-rwxr-xr-x 8968