kamagra oral jelly livraison rapide comprar viagra gibraltar viagra pas cher en ligne tadalafil preis cialis versand aus deutschland cialis basso costo viagra apotheke holland vente en ligne viagra viagrasuisse pharmacie en ligne sans ordonnance viagra français viagra express france levitra prix pharmacie cialis lilly preis sostituto viagra
prix du cialis 10 
achat viagra securis a 
forum comment acheter cialis en ligne 
cialis prix belgique 
ou commander du viagra sur internet 
viagra a vendre quebec 
acheter du viagra par paypal france 
quebec viagra 
viagra ordonnance ou pas 
belgique viagra 
livraison express viagra 
achat viagra non frauduleux 
acheter viagra espagne 
générique vardenafil par mastercard 
generique viagra 
buy champix buy cialis discount viagra online buying kamagra buy cialis viagra naturel cialis cost cialis store where can i buy viagra viagra online without prescription uk cialis for women cheapest viagra finasteride mg where to buy kamagra in usa champix

How to Remove Trailing Space from source files

When it comes to source code, i am a perfectionist. I cant stand to see trailing whitespace, interchanged tabs/spaces, etc.

This Stackoverflow user asked How To Remove Trailing Whitespace Of All Files Recursively.

This reply helped me to work around the fact that \s and \t are not supported in the mac version of sed:

find dir -type f -print0 | xargs -0 sed -i .bak -E “s/[[:space:]]*$//”

So using [:space:] can actually work for both tabs and spaces.

However, I ended up not using ‘find’ for the files, and then passing the files to sed directly:

sed -i ” ‘s/[[:space:]]*$//g’ **/*.*

Comments are closed.