|
Looks like homework. Is it?
Do you want to just print only the first name on the screen, or do you want the file to be saved without the second/third names?
For the first, look up the man page of cut or awk. For the second, you'll have to use the vi editor. Check any of the myriad tutorials available online.
|