bash->ruby