-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Content-ID: <alpine.LNX.2.00.1304031625101.21805@Telcontar.valinor> On Wednesday, 2013-04-03 at 15:17 +0100, Dave Howorth wrote:
Carlos E. R. wrote:
Ok, but the man page does not say how to tell grep not to look inside not normal files :-)
-D ACTION, --devices=ACTION If an input file is a device, FIFO or socket, use ACTION to process it. By default, ACTION is read, which means that devices are read just as if they were ordinary files. If ACTION is skip, devices are silently skipped.
What's that then?
Ha! Didn't see that one. Let's try - huh, no, I deleted that 3 year old named pipe. Ok, then: cer@Telcontar:~> grep -D skip fdisk /dev/* grep: /dev/core: Permission denied cer@Telcontar:~> I suppose that worked :-) That's one to put in my book. Never stop learning! :-) - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFcPDQACgkQtTMYHG2NR9VtowCeIBrh0ACyf+3go+FjzUmfvPn6 h/8AoJJDQxeLnmY9EnbCYdYGQlcm2T7k =tjMD -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org