-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, Oct 18, 2015 at 09:58:01PM +0200, Kurt Flex wrote: > On Fri, Oct 16, 2015 at 03:14:31PM +0200, to...@tuxteam.de wrote: > > On Fri, Oct 16, 2015 at 02:54:25PM +0200, Nemeth Gyorgy wrote: > > > 2015-10-16 14:15 keltezéssel, Alfred Charles Stockton írta: > > > cat /etc/*-release | grep ^PRETTY_NAME | sed 's/^.*=//' > > > > Many insightful answers have been given. Yours is an example of "useless > > use of cat" [1], better spelt as > > > > grep ^PRETTY_NAME /etc/*-release | sed 's/^.*=//' > > > > Even better, since sed can do grep: > > > > sed -ne '/^PRETTY_NAME=/ s/^.*=// p' < /etc/*-release > > Not if there may be more than one file matching the pattern. In that > case at least your "better" example breaks. It can be fixed by > omitting "<".
You are right, of course. Thanks :-) - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEUEARECAAYFAlYj8pwACgkQBcgs9XrR2kanlQCYsVXb2pIomOKeQaqCNTbEKrqZ dQCfSIKTynqVZCWbxKlfc6NL/AVBNvI= =I46h -----END PGP SIGNATURE-----