Added good bash function

I added a good bash function