I want to print out a file that has 1 column listing values like:
cat
dog
house
But I want to have the file print like this to another file:
1 cat
2 dog
3 house
I think that awk could be used to do this?
Can you provide the command to do that? I know I need to do something like this to print the file:
awk -F '{ print $1 }'
But would I do something like this:
int i
awk -F '{ print i, " " $1 }'
i++
(Left my awk book at work)


cat -nwould do this job.