adspace
How to remove the first line/header from a file in Unix?
Answer Posted / Rohit Kandulna
To remove the first line (or header) from a file in Unix, you can use `sed` command. The following command will delete the first line: `sed '1d' filename`. Here, `1` refers to the first line.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers