Linux-kernel mailing list archive 1999-23,: Re: Profanity in the Linux Kernel?!?!?

# Re: Profanity in the Linux Kernel?!?!?

Arvind Sankar (arvinds@mit.edu)
Thu, 10 Jun 1999 22:10:22 -0400

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: David: "Re: Profanity in the Linux Kernel?!?!?"
- Previous message: Richard B. Johnson: "TCP/IP Wierdness during ftp"

On Fri, Jun 11, 1999 at 12:33:50AM +0100, Riley Williams wrote:
> Hi Tom.
>
> >> cd /usr/src/linux ; grep -i fuck `find . -name '*.[ch]'`
>
> > Why not:
>
> > find /usr/src/linux -name '*.[ch]' -exec grep -i fuck {} \;
>
> It doesn't work on my system, for starters. However, the following
> variant works...
>
> Q> find /usr/src/linux -name '*.[ch]' -exec grep -i fuck '{}' \;
>

While we're being pedantic, notice that the last form won't work if
/usr/src/linux happens to be a symlink. So

cd /usr/src/linux && find . -type f -a \! -name \*.o -a \! -name \*.a \
-a \! -name vmlin\* | xargs grep -i fuck

would be slightly better. Also, note that there is no reason why Makefile's
and Config.in's etc etc can't contain `fuck'.

-- arvind

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: David: "Re: Profanity in the Linux Kernel?!?!?"
- Previous message: Richard B. Johnson: "TCP/IP Wierdness during ftp"