#!/bin/awk -f
BEGIN{FS=",";
if(ARGC>2){name=ARGV[1];delete ARGV[1]}
else{ echo "please enter name";getline name<"-" }
}
$1~name {print $1,$3}
#!/bin/awk -f
BEGIN{FS=",";
if(ARGC>2){name=ARGV[1];delete ARGV[1]}
else{ echo "please enter name";getline name<"-" }
}
$1~name {print $1,$3}