~gnome-terminator/terminator/gtk3

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

for t in tests/test*; do
    echo $t
    file_type=$(file -b $t)
    case ${file_type} in
        *[Pp]ython*) python ${t} ;;
        *Bourne*) bash ${t} ;;
        *bash*)   bash ${t} ;;
        *perl*)   perl ${t} ;;
        *) echo "Unknown" ;;
    esac
    echo
done