advanced bash assignment