[Ovirt-devel] Re: a pox on whitespace

mark wagner mwagner at redhat.com
Thu Jul 24 01:15:23 UTC 2008



Jim Meyering wrote:
> 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:

Which in turn made it really interesting to try and keep
*the line* less than 80 chars...

Brings back memories of APL...

:)

>>
>> perl -pi.bak -e 's/[ \t]+$//' file1 file2 ...
> 
> <blush> Oops indeed!
> Thanks for the correction, Alan!
> 
> _______________________________________________
> Ovirt-devel mailing list
> Ovirt-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/ovirt-devel




More information about the ovirt-devel mailing list