[Ovirt-devel] Re: a pox on whitespace

Jim Meyering jim at meyering.net
Wed Jul 23 22:03:51 UTC 2008


Alan Pevec <apevec at redhat.com> wrote:
>>> Also needed might be a quick script to remove trailing whitespace from
>>> a file?
>>
>> perl -pi -e 's/\s+$//' file1 file2 ...
>
> Oopps! That ate all linefeeds, use this one instead:
>
> perl -pi.bak -e 's/[ \t]+$//' file1 file2 ...

<blush> Oops indeed!
Thanks for the correction, Alan!




More information about the ovirt-devel mailing list