📌  相关文章
📜  bash 如何删除文件的前 n 行 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:46.338000             🧑  作者: Mango

代码示例1
# Example usage (3 options):
tail -n +43 input_file    # Print from the 43rd line on
sed 1,42d input_file    # Print from the 43rd line on
sed -i 1,42d input_file    # Remove the first 42 lines in place (meaning 
    # that the file is changed without having to print the output to a 
    # new file)