Nguyễn Đôn Hào
New member
How do I print the first line of awk?
Answer
The following `awk` command uses the
‘-F ‘ option and a conditional statement to print the author names after skipping the first line. Here, the NR value is used in the if condition. Here, “Author Name:nn” will be printed as the first line instead of the content from the first line.
Answer
The following `awk` command uses the
‘-F ‘ option and a conditional statement to print the author names after skipping the first line. Here, the NR value is used in the if condition. Here, “Author Name:nn” will be printed as the first line instead of the content from the first line.