>> head -20 < filename > > too bad head doesn't exist on v7. sed -20q: same effect, same amount of typing.