lkml.org 
[lkml]   [2001]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] remove trailing whitespace
I used sed, but yes the following does
the same as downloading and applying the patch:
find linux -type f | xargs perl -wi -pe 's/[<space><tab>]+$//'
(obviously replace <space> & <tab> with the appropriate chars).

Note also that after (bz2) compression the space saving drops
from 224,654 to 139,669 bytes, which is still good.

Padraig.

Mark Hahn wrote:

> find linux -type f | xargs perl -pe 's/\s+$/\n/'
> wouldn't something like this work? seems generally easier,
> more compact, and probably more Linus-appetizing...
>
>
>>This (23MB! (5Mb compressed)) patch removes trailing whitespace from
>>all files in the kernel, thereby reducing size from 121,865,495 to
>>121,640,841. I.E. reducing size by 224,654 bytes. I don't know if it's
>>of any use, but it should be applied now if it is going to be done
>>at all.
>>
>>http://www.iol.ie/~padraiga/linux-2.5.0-strip-ws.diff.gz
>>
>>cheers,
>>Padraig.



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

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