How to remove the first line/header from a file in Unix?



How to remove the first line/header from a file in Unix?..

Answer / 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

More Unix General Interview Questions

What is difference between unix and windows operating system?

1 Answers  


What is .profile unix?

1 Answers  


What are the main features of unix operating system?

1 Answers  


How to display n-th line of a file in Unix?

1 Answers  


Which is the shell of unix?

1 Answers  


Is a directory unix?

1 Answers  


How to print/display the last line of a file in Unix?

1 Answers  


What do you understand by the term filters?

1 Answers  


What does cp mean in unix?

1 Answers  


Is unix portable?

1 Answers  


What is tilde unix?

1 Answers  


How do I show only directories in unix?

1 Answers  


Categories