how to read file from line x to the end of a file in bash

前端 未结 7 518
慢半拍i
慢半拍i 2020-12-23 13:33

I would like know how I can read each line of a csv file from the second line to the end of file in a bash script.

I know how to read a file in bash:

7条回答
  •  无人及你
    2020-12-23 14:12

    Simple solution with sed:

    sed -n '2,$p' 

    where 2 is the number of line you wish to read from.

提交回复
热议问题