remove trailing spaces from _many_ files





10
Date Submitted Thu. May. 11th, 2006 10:13 AM
Revision 1 of 3
Helper jbuchberger
Tags BATCH | Java
Comments 2 comments
Java properties files can yield undesirable results at runtime, if there happen to be spaces at the end of some lines.

Requires a win32 port for the GNU utilities grep and sed - e.g. .
mkdir trimmed

for /F "usebackq" %%f in (`grep -l -e " $" *.properties`) do sed -e "s/ *$//" %%f > trimmed\%%f
 

Joerg Buchberger

Comments

Comments Properties files in XML
Thu. Sep. 21st, 2006 9:50 PM    Beginner java_junkie
Comments in case of Java properties...
Thu. May. 11th, 2006 10:42 AM    Helper jbuchberger

Voting