On Thu, Jun 23, 2011 at 7:53 AM, Ralf Mardorf
wrote:
Grep is fully capably capable of matching lines directly from the file
so you don't need anything piping the file to it. You would only need
to use "less" in this context if you expected the number of matches
from "grep" to exceed your console size and wanted to page through
them ("grep PREEMPT /boot/config* | less").
> Could there be any advantages for me not
You probably won't notice on simple one-liners, but it's bad practice
and will lead to bad scripting. If you write a script with a bunch of
useless "cat's" in it you will notice a *significant* performance hit
when compared to a script that properly uses shell built-ins, etc.
--Steve
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.