Awk printing help

Hallo,

i have a file which looks like this:

$1 $2 $3

Student1        55     Pass
                    55     Pass
                    35     Fail
Student2        55     Pass
                    55     Pass
                    35     Fail

i want that the $1 field be completely filled with respective student id;

desired output is:

Student1        55     Pass
Student1        55     Pass
Student1        35     Fail
Student2        55     Pass
Student2        55     Pass
Student2        35     Fail

Thank you!

Try this:

awk '/Student/{n=$1;print;next} {print n, $0}' file
nawk 'NF==3{id=$1;print;next}{print id, $0}' myFile
nawk ' NF==3{ id=$1;printf("%s\t\t%d\t%s\n", id,$2,$3);next } {printf("%s\t\t%d\t%s\n", id, $1, $2)}' file