3-3-12-3 tail ログ、設定の調べ方

estis2017/02/18 (土) 10:50 に投稿
# for i in $(seq 1 20); do echo $i; done | tail -5
16
17
18
19
20
# for i in $(seq 1 20); do echo $i; done | tail -n 5
16
17
18
19
20
# for i in $(seq 1 20); do echo $i; done | tail -n +5
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# for i in $(seq 1 20); do echo $i; done | tail -n -5
16
17
18
19
20
# tail --version
tail (GNU coreutils) 8.22
Copyright (C) 2013 Free Software Foundation, Inc.
ライセンス GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

作者 Paul Rubin、 David MacKenzie、 Ian Lance Taylor、
および Jim Meyering。