# to uppercase $ echo alphaBETA | sed 's/.*/\U&/' ALPHABETA # to lowercase $ echo alphaBETA | sed 's/.*/\L&/' alphabeta