Re: [SCRIPT] chomp: trim trailing whitespace
- From
- Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
- Date
- May 27, 2006, 10:24 UTC
- Message-ID
- <20060527102439.GB26430@cip.informatik.uni-erlangen.de>
- In-Reply-To
- <Pine.LNX.4.61.0605271212210.6670@yvahk01.tjqt.qr>
Hello,
> #!/usr/bin/perl -i -p > s/[ \t\r\n]+$//
perl -p -i -e 's/\s+$//' file1 file2 file3 ...
Thomas