[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tail(1) --no-free-bonus- "clarity separator lines"
From: |
jidanni |
Subject: |
tail(1) --no-free-bonus- "clarity separator lines" |
Date: |
Wed, 23 Jan 2008 21:56:13 +0800 |
Gentlemen, your assignment: tell me how many blank lines are at the
end of each file:
$ tail -n 3 sd?
==> sd1 <==
------------=_1201017022-21167-0
==> sd2 <==
------------=_1201077677-7431-0--
==> sd3 <==
------------=_1201017022-21167-0
$ tail -n 3 sd{3,2,1} #let's try again, shall we?
==> sd3 <==
------------=_1201017022-21167-0
==> sd2 <==
------------=_1201077677-7431-0--
==> sd1 <==
------------=_1201017022-21167-0
$ seq 3 > t #OK I am getting dizzy. Never mind, let's try something different:
$ tail t t t
==> t <==
1
2
3
==> t <==
1
2
3
==> t <==
1
2
3
$ tail --version
tail (GNU coreutils) 5.97 ...
Anyway, ha ha ha! Checkmate: there's no option to turn off tail's
"free bonus gift" of extra "clarity separator lines" at the end of all
files but the last.
Ask yourselves, would more(1) pull such cr*p?
$ more t t t|cat
::::::::::::::
t
::::::::::::::
1
2
3
::::::::::::::
t
::::::::::::::
1
2
3
::::::::::::::
t
::::::::::::::
1
2
3
$
So we see your work is cut out for you.
- tail(1) --no-free-bonus- "clarity separator lines",
jidanni <=