📜  bash sed crop cut 文件行号——C编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:35.654000             🧑  作者: Mango

代码示例1
sed -n '8,12p' yourfile  # Will send lines 8 through 12 of yourfile to standard out.

# For example:
cat file-to-cut.txt | sed -n '26,142p' >> new-file.txt