lkml.org 
[lkml]   [1999]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Profanity in the Linux Kernel?!?!?
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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.768 / U:0.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site