(Please take the dots (...) as spaces, I put them because the original post was ignoring the spaces)
So at the end I need the second column (numbers) to start at the same position.
My incorrect output shows the numbers right one space after the animal file names but what I need is to put the all numbers aligned in a second column.
Then result.cnt file is created like this:
dog.csv 2323
cat.csv 33
elephant.csv 4444
cougar.csv 545545
but I want my result to be as something like the following
....................<-I need the number to start here
dog.csv.........2323
cat.csv..........33
elephant.csv...4444
cougar.csv.....545554
(Please take the dots (...) as spaces, I put them because the original post was ignoring the spaces)
I tried your code but got an error "ksh: column: not found"