Delete first line from file in shell script
We can delete the first line in a file using ‘sed’ command in the shell script. Let us see with the help of a test file called ‘sample.txt’. Here are the contents of the text file. Option 1: Delete and save in a new file In this option, a new file will be created with… Read More »