-----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----- _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
