[Ovirt-devel] Re: a pox on whitespace

Alan Pevec apevec at redhat.com
Wed Jul 23 21:55:32 UTC 2008


>> 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 ...




More information about the ovirt-devel mailing list