This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] tail -1 usage
- From: "Bonzini" <bonzini at gnu dot org>
- To: <gcc-patches at gcc dot gnu dot org>,<olh at suse dot de>
- Date: Mon, 30 Jun 2003 14:17:47 +0200
- Subject: [PATCH] tail -1 usage
> The new gnu coreutils do not allow tail/head -1 anymore.
Then use sed -n '$p', or sed '$!d' if you prefer.
It would be very nice to replace all occurrences of head and tail with sed invocations
(not something that I can do on a 56k line alas).
head -N ==> sed Nq
tail -1 ==> sed $!d
tail -2 ==> sed $!N; $!D
tail -N ==> rewrite it otherwise :-)
|_ _ _ __
|_)(_)| ),'
------- '---