bash -> ruby