It is very long ago that `tail -5 foo` would show the last five lines of foo. These days you need to say
tail -n 5 foo The "filtered postsuper delete example" also misses the -n. This patch adds the -n When in doubt about "compatiblity", check * http://www.unix.com/man-page/posix/1p/tail/ * http://www.unix.com/man-page/freebsd/1/tail/ * http://man7.org/linux/man-pages/man1/tail.1p.html and the manual page on your local system --- man/man1/postsuper.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/man1/postsuper.1 b/man/man1/postsuper.1 index bfe8dd1..f507416 100644 --- a/man/man1/postsuper.1 +++ b/man/man1/postsuper.1 @@ -43,7 +43,7 @@ queue IDs from standard input. For example, to delete all mail with exactly one recipient \fbu...@example.com\fR: .sp .nf -mailq | tail +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } +mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } # $7=sender, $8=recipient1, $9=recipient2 { if ($8 == "u...@example.com" && $9 == "") print $1 } -- 2.8.0.rc3