📌  相关文章
📜  bash 脚本输出文件的特定行 - Shell-Bash 代码示例

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

代码示例1
/**
* A bash script to print at stdout line_number from file_name
* @line_number: the line number you want to print
* @file_name: the file you want to read from
*/

awk '{if(NR==line_number) print $0}' file_name