Messages in this thread | | | Date | Fri, 23 Nov 2001 20:34:36 +0000 | From | Padraig Brady <> | Subject | Re: [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/
| |