I have a very large text file and all I need to do is remove one single line from the top of the file. Ideally, it would be done in PHP, but any unix command would work fine. I’m thinking I can just stream through the beginning of the file till I reach \n, but I’m not sure how I do that.
Thanks,
Matt Mueller
sed -i -e '1d' filewill do what you want.-iindicates “in-place”-emeans “evaluate this expression”'1d'means, delete the first line