Report abuse

1
2
3
4
5
6
7
8
#!/bin/bash
#compile all files in dir to filename_bin and pipe output in filename.error_out


for i in *; do
    echo $i
    gcc -Wall -o ${i}_bin ${i} >& ${i}.error_out
done