• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2file=$(find . -name "*.[ch]" -o -name "*.cpp")
3for i in $file
4do
5    echo $i
6    astyle --style=linux -s4 -c -s -p -U -H -n $i
7    sed -i 's/[ \t]*$//' $i #remove trailing space
8done
9
10
11
12