[lkml]   [2006]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [SCRIPT] chomp: trim trailing whitespace
    > Attached to this email is, a Perl script which removes trailing
    > whitespace from several files. I've had this for years, as trailing whitespace
    > is one of my pet peeves.
    > Now that git-applymbox complains loudly whenever a patch adds trailing
    > whitespace, I figured this script may be useful to others.

    Pretty long script. How about this two-liner? It does not show 'bytes
    chomped' but it also trims trailing whitespace.

    #!/usr/bin/perl -i -p
    s/[ \t\r\n]+$//

    Jan Engelhardt
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-05-27 12:21    [W:0.019 / U:32.484 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site