[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: The emperor's New Inittab
- From: "Bryn M. Reeves" <bmr redhat com>
- To: For testers of Fedora Core development releases <fedora-test-list redhat com>
- Subject: Re: The emperor's New Inittab
- Date: Mon, 16 Jun 2008 10:28:29 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Summerfield wrote:
> The quick way to get an answer is:
> find /etc -type f -exec grep -l {} \;
> and examine files listed.
Surely you want a pattern in there somewhere?
Without one, that command never terminates - grep will sit there
interpreting the value of {} as a pattern and trying to read from stdin:
$ find /etc -type f -exec grep -l {} \; &
$ ps ax | grep grep
1849 pts/48 S+ 0:00 find /etc -type f -exec grep -l {} ;
1850 pts/48 S+ 0:00 grep -l /etc/motd
Been doing that for a while now...
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFIVjI96YSQoMYUY94RAiYRAKDdrISJeLMCpkckpAzw+/j8nf7L7QCfT4nP
6zslPuiHUQzffWMmTrXU3aQ=
=KggQ
-----END PGP SIGNATURE-----
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]