Reformat shell connands.