Quote:
awk 'begin{print "USER Name User ID Home Directory" }'
|
The word BEGIN is in caps. The header is only part of the picture, you still need to print the colums with data in them.
Don't forget to separate the columns with tabs.
For example: 'BEGIN {User Name\tUser ID\t\tHome Directory}
Don't forget the Input Field Separator. For example: awk -F:
Don't forget the Output Field Separator. For example: {OFS="\t\t"}
Don't forget to choose the columns which you want to print.
For example: {print$1,$3,$6}' project1