# 31337 (void) replacement script :p for name in *.c do echo "Removing (void)'s from $name" perl -e 'while (<>) { $foo = $_; $foo =~ s/^(\s*)\(void\)\s*/$1/; print $foo; }' < $name > $name-new mv $name-new $name done