bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not a bug, a wish


From: Micah Cowan
Subject: Re: Not a bug, a wish
Date: Wed, 26 Mar 2008 15:32:39 -0700
User-agent: Thunderbird 2.0.0.12 (X11/20080213)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Samuel GRANJEAUD - IR/IFR137 wrote:
> Hello,
> 
> I thank you very much for devolopping coreutils that allows quick and
> simple replacement of SQL queries and check. What I would appreciate is
> a tool that does head and tail in one command, giving the top and bottom
> lines from a piped output.

Do you literally mean just the one top line and one bottom line? That
could easily be achieved with the sed command: sed -n '1p;$p'.

If you need more lines, sed can still do it, but requires a bit more
work. You might look to a simple solution in
awk/Perl/your-scripting-language-of-choice.

- --
HTH,
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer,
and GNU Wget Project Maintainer.
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH6s8H7M8hyUobTrERArSOAJ9rBMUJuI8qRcyHWLx95UM8o8aUhACeIcGM
cT8GeCpjotLFHLQRI1ogEYI=
=SHiW
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]