mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
12 lines
87 B
Bash
12 lines
87 B
Bash
#!/bin/bash
|
|
|
|
#输出末尾10行数据
|
|
|
|
sed '{
|
|
:start
|
|
$q
|
|
N
|
|
11,$D
|
|
b start
|
|
}' /etc/passwd
|