Re: [SCRIPT] chomp: trim trailing whitespace

From: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
Date: 2006-05-27 20:24:39
Hello,

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

perl -p -i -e 's/\s+$//' file1 file2 file3 ...

        Thomas
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat May 27 20:25:14 2006

This archive was generated by hypermail 2.1.8 : 2006-05-27 20:30:44 EST