[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add --skip to head and tail
From: |
Dan Jacobson |
Subject: |
Re: add --skip to head and tail |
Date: |
Sat, 20 Dec 2003 08:23:50 +0800 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Paul> These proposed options would be of limited utility, since you can
Paul> already do that in another way. "tail --skip=5 -n 10" would be
Paul> equivalent to "tail -n 15 | head -n 10", and "head --skip=5 -n 10"
Paul> would be equivalent to "tail -n +6 | head -n 10".
mainly I was attempting ways at reading parts of the file without
reading other parts (that caused disk read errors), without resorting
to dd(1), or C tools.
BTW, your tail -n +6 | head -n 10 would be a drag on a pipe, but one
could use sed '10q;1,5d' but still we would get our disk errors.