When I use curl -s to access a text file, it will display the entire content. Is there any way to ignore the first line of content?

Test text file link:

curl -s https://raw.githubusercontent.com/Automattic/_s/master/languages/readme.txt

1 Answer 1


You can pipe and use another command to remove the first line, for example using tail

curl -s https://... | tail +2

or sed

curl -s https://... | sed '1d'
  • thank for your reply! If access multiple files at the same time, can delete the first line of each file? curl -s https://... https://...
    – Matthew
    Sep 30, 2019 at 3:26
  • Likely the easiest way is to run curl once per url, eg. curl -s https://...| tail +2; curl -s https://... | tail +2; ...
    – sebasth
    Sep 30, 2019 at 11:26

Not the answer you're looking for? Browse other questions tagged .