manipulating shell output