Featured
cpp
Formater des fichiers cpp et h
Posted by Jean-Michel Frouin on .Appliquer rapidement un formatage commun, à tous les fichiers *.h et *.cpp en utilisant bcpp.
#!/bin/bash
for i in `find . -name "*.h" -o -name "*.cpp"`
do
bcpp ${i} > ${i}2;
mv ${i}2 ${i}
done;