linux-tutorial/codes/shell/示例脚本/查找替换文本/sed/输出末尾指定行数的数据.sh
2019-10-10 08:56:31 +08:00

12 lines
87 B
Bash

#!/bin/bash
#输出末尾10行数据
sed '{
:start
$q
N
11,$D
b start
}' /etc/passwd