Remove first line of a csv file with 'sed'
✓ Published0🌍 Public
WWilliamQLiu
Last edited Feb 9, 2015
Created on Jan 28, 2015
This example demonstrates how to remove the first line of a CSV file using the `sed` command-line utility. The code shows two separate commands: `sed -i '1d' file.csv` deletes the first line, while `sed -i '2d' file.csv` removes the second line. Both commands modify the file in place with the `-i` flag, and the `d` command specifies which line number to delete. The data source is a generic CSV file named `file.csv`.
AI-generated description