Improved bash analyse