Peter Simons wrote: ... > > If you're motivated, propose a patch. > > My suggested solution is attached.
Thanks, but that does not allow us to select ranges like "just line 3" or "lines 20-22". How about removing the use of "head" and using this as the default: sed -n 1,10p