Hi:
Man, let's try that again! Sorry:
1) I'm using nawk on Solaris 7. You might have to use awk or gawk?
2) You didn't say what the field delimiter was. I assumed a default. If it's different uncomment out the other line and choose a proper value for FS.
Regards,
Ed
CF=2 # certain field
CL=3 # certain line
########nawk -v cf=$CF -v cl=$CL ' BEGIN { FS="|" }
nawk -v cf=$CF -v cl=$CL '
{
if(cl == NR)
printf("%s\n", $cf)
} ' input.file