lkml.org 
[lkml]   [1999]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Profanity in the Linux Kernel?!?!?
Hi Arvind.

>>>> 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.

On my system, /usr/src/linux IS a SymLink, and the above works fine.

> 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.

What on earth for!!! It doesn't even begin to match the original
command and its aims.

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

Note also that the sequence 'fuck' is a valid compression sequence
that could easily be generated by gzip when it compresses the code.
Your command will quite happily report it as well...

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html


-
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.130 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site