1 2 3 4 5 6 7
#!/bin/sh if [ -d /cores ]; then for core in /cores/*; do lldb --core $core --one-line "bt all" < /dev/null done fi